* sigproc.cc (child_info::sync): Use correct name when closing to prevent
warnings when DEBUGGING. * spawn.cc (spawn_guts): Set myself.hProcess to pi.hProcess since this may have been zeroed by the previous sync.
This commit is contained in:
		| @@ -1,3 +1,10 @@ | ||||
| 2005-10-18  Christopher Faylor  <cgf@timesys.com> | ||||
|  | ||||
| 	* sigproc.cc (child_info::sync): Use correct name when closing to | ||||
| 	prevent warnings when DEBUGGING. | ||||
| 	* spawn.cc (spawn_guts): Set myself.hProcess to pi.hProcess since this | ||||
| 	may have been zeroed by the previous sync. | ||||
|  | ||||
| 2005-10-18  Christopher Faylor  <cgf@timesys.com> | ||||
|  | ||||
| 	* sigproc.cc (child_info::sync): Fix typo which caused hProcess to | ||||
|   | ||||
| @@ -848,7 +848,7 @@ child_info::sync (pid_t pid, HANDLE& hProcess, DWORD howlong) | ||||
| 	{ | ||||
| 	  if (type != _PROC_FORK && x == nsubproc_ready) | ||||
| 	    { | ||||
| 	      ForceCloseHandle (hProcess); | ||||
| 	      ForceCloseHandle1 (hProcess, childhProcess); | ||||
| 	      hProcess = NULL; | ||||
| 	    } | ||||
| 	  sigproc_printf ("process %d synchronized, WFMO returned %d", pid, x); | ||||
|   | ||||
| @@ -814,6 +814,7 @@ spawn_guts (const char * prog_arg, const char *const *argv, | ||||
|   switch (mode) | ||||
|     { | ||||
|     case _P_OVERLAY: | ||||
|       myself.hProcess = pi.hProcess; | ||||
|       if (!synced && !myself->wr_proc_pipe) | ||||
| 	{ | ||||
| 	  extern bool is_toplevel_proc; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user