Include config.h after CRT headers. Include fcntl.h.
authorGeoff Voelker <voelker@cs.washington.edu>
Fri, 3 May 1996 18:35:50 +0000 (18:35 +0000)
committerGeoff Voelker <voelker@cs.washington.edu>
Fri, 3 May 1996 18:35:50 +0000 (18:35 +0000)
commitc519b5e10e0706332a557a49299b96537305d459
treea005e9a851cc5b9b2e0afe90212cdcbb2f819e97
parent407c17456ac0f7bfcccd50c8a68e59dee111796f
Include config.h after CRT headers. Include fcntl.h.
(child_process, MAX_CHILDREN, CHILD_ACTIVE): Moved to nt.h.
(DebugPrint): New macro.
(new_child): Create input event structures for child processes.
(delete_child): New function.
(reader_thread): Return nonzero upon failure.  Use _sys_read_ahead.
(create_child): Add child_process and parent PID arguments.
Don't create input event or thread structures here.
Fixup Win95 negative process IDs.
(register_child): Don't set consumed event; instead, set thread
status so that select will release it.
(remove_child): Renamed to reap_process.  Only free resources
of synchronous children.
(win32_wait): Renamed to sys_wait.  Sanity check to make sure
handle to subprocess exists.  Don't reclaim thread resources here.
(win32_spawnve): Renamed to sys_spawnve.
Check for proper wait mode first thing.
Convert command name to DOS format.
Quote whitespace and quotes in arguments to subprocess.
Use alloca instead of malloc.
If max subprocesses, return EAGAIN in hopes of another completing.
(sys_select): Add support for socket input.  Remove dead code.
Check input from children fairly.
(sys_select) [HAVE_TIMEVAL]: Remove conditional check and code.
(win32_kill_process): Renamed to sys_kill.  Use OpenProcess
to terminate process.
(prepate_standard_handles, reset_standard_handles): Moved here
from nt.c.
src/w32proc.c