* fork.cc (fork_child): Move fixup_shms_after_fork so that
signal_arrived is initialized when calling it.
This commit is contained in:
		| @@ -1,3 +1,8 @@ | |||||||
|  | 2004-02-17  Corinna Vinschen  <corinna@vinschen.de> | ||||||
|  |  | ||||||
|  | 	* fork.cc (fork_child): Move fixup_shms_after_fork so that | ||||||
|  | 	signal_arrived is initialized when calling it. | ||||||
|  |  | ||||||
| 2004-02-17  Christopher Faylor  <cgf@redhat.com> | 2004-02-17  Christopher Faylor  <cgf@redhat.com> | ||||||
|  |  | ||||||
| 	* Makefile.in (clean): Clean libserver, too. | 	* Makefile.in (clean): Clean libserver, too. | ||||||
|   | |||||||
| @@ -300,15 +300,15 @@ fork_child (HANDLE& hParent, dll *&first_dll, bool& load_dlls) | |||||||
|   (void) ForceCloseHandle1 (fork_info->subproc_ready, subproc_ready); |   (void) ForceCloseHandle1 (fork_info->subproc_ready, subproc_ready); | ||||||
|   (void) ForceCloseHandle1 (fork_info->forker_finished, forker_finished); |   (void) ForceCloseHandle1 (fork_info->forker_finished, forker_finished); | ||||||
|  |  | ||||||
|  |   pinfo_fixup_after_fork (); | ||||||
|  |   _my_tls.fixup_after_fork (); | ||||||
|  |   sigproc_init (); | ||||||
|  |  | ||||||
| #ifdef USE_SERVER | #ifdef USE_SERVER | ||||||
|   if (fixup_shms_after_fork ()) |   if (fixup_shms_after_fork ()) | ||||||
|     api_fatal ("recreate_shm areas after fork failed"); |     api_fatal ("recreate_shm areas after fork failed"); | ||||||
| #endif | #endif | ||||||
|  |  | ||||||
|   pinfo_fixup_after_fork (); |  | ||||||
|   _my_tls.fixup_after_fork (); |  | ||||||
|   sigproc_init (); |  | ||||||
|  |  | ||||||
|   /* Set thread local stuff to zero.  Under Windows 95/98 this is sometimes |   /* Set thread local stuff to zero.  Under Windows 95/98 this is sometimes | ||||||
|      non-zero, for some reason. |      non-zero, for some reason. | ||||||
|      FIXME:  There is a memory leak here after a fork. */ |      FIXME:  There is a memory leak here after a fork. */ | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user