* dtable.cc (dtable::fixup_after_fork): Use SetStdHandle appropriately on
inherited fds.
This commit is contained in:
		| @@ -1,3 +1,8 @@ | ||||
| Sun Sep  9 22:11:27 2001  Christopher Faylor <cgf@cygnus.com> | ||||
|  | ||||
| 	* dtable.cc (dtable::fixup_after_fork): Use SetStdHandle appropriately | ||||
| 	on inherited fds. | ||||
|  | ||||
| Sun Sep  9 20:09:11 2001  Christopher Faylor <cgf@cygnus.com> | ||||
|  | ||||
| 	* sigproc.cc (NZOMBIES): Reduce substantially to minimize memory use. | ||||
|   | ||||
| @@ -536,6 +536,10 @@ dtable::fixup_after_fork (HANDLE parent) | ||||
| 	    debug_printf ("fd %d (%s)", i, fh->get_name ()); | ||||
| 	    fh->fixup_after_fork (parent); | ||||
| 	  } | ||||
| 	if (i == 0) | ||||
| 	  SetStdHandle (std_consts[i], fh->get_io_handle ()); | ||||
| 	else if (i <= 2) | ||||
| 	  SetStdHandle (std_consts[i], fh->get_output_handle ()); | ||||
|       } | ||||
| } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user