diff options
author | Christopher Faylor <me@cgf.cx> | 2005-05-19 01:25:20 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2005-05-19 01:25:20 +0000 |
commit | ac437c3e0c36f710d66c619635693adfd12c6c00 (patch) | |
tree | a8352b720d4049c58f6cd65f17c1fb9954f41df4 /winsup/cygwin/external.cc | |
parent | 24515d6563060fda3ad1d0cfa7bbb6936521895b (diff) | |
download | newlib-ac437c3e0c36f710d66c619635693adfd12c6c00.zip newlib-ac437c3e0c36f710d66c619635693adfd12c6c00.tar.gz newlib-ac437c3e0c36f710d66c619635693adfd12c6c00.tar.bz2 |
* external.cc: Move pids declaration to file scope and use less enthusiastic
constructor.
* pinfo.h (winpids::winpids): Remove default setting.
* fhandler_fifo.cc (fhandler_fifo::open_not_mine): Accommodate removal of
default setting.
* fhandler_proc.cc (fhandler_proc::readdir): Ditto.
Diffstat (limited to 'winsup/cygwin/external.cc')
-rw-r--r-- | winsup/cygwin/external.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/winsup/cygwin/external.cc b/winsup/cygwin/external.cc index 04604b3..2bcbc70 100644 --- a/winsup/cygwin/external.cc +++ b/winsup/cygwin/external.cc @@ -32,6 +32,8 @@ details. */ void *hook_cygwin (const char *, const void *); child_info *get_cygwin_startup_info (); +static winpids pids; + static external_pinfo * fillout_pinfo (pid_t pid, int winpid) { @@ -41,7 +43,6 @@ fillout_pinfo (pid_t pid, int winpid) if ((nextpid = !!(pid & CW_NEXTPID))) pid ^= CW_NEXTPID; - static winpids pids (0); static unsigned int i; if (!pids.npids || !nextpid) |