summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/sigproc.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2002-09-22 03:38:57 +0000
committerChristopher Faylor <me@cgf.cx>2002-09-22 03:38:57 +0000
commitc90e1cf179187d5d188a3003db503ffd86d80cfe (patch)
treead0890e2267f00de92aefc5a99d60017e4f15fe9 /winsup/cygwin/sigproc.cc
parent228f6b6e07f1b08620dc08f389263f228da0079f (diff)
downloadcygnal-c90e1cf179187d5d188a3003db503ffd86d80cfe.tar.gz
cygnal-c90e1cf179187d5d188a3003db503ffd86d80cfe.tar.bz2
cygnal-c90e1cf179187d5d188a3003db503ffd86d80cfe.zip
* fhandler.cc (fhandler_base::dup): Don't set handle on failure. Caller has
already taken care of that. * fhandler_console.cc (fhandler_console::open): Initialize handles to NULL. (fhandler_console::close): Ditto. GNUify non-GNU formatted functions calls throughout.
Diffstat (limited to 'winsup/cygwin/sigproc.cc')
-rw-r--r--winsup/cygwin/sigproc.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/winsup/cygwin/sigproc.cc b/winsup/cygwin/sigproc.cc
index 8509ff8c4..091065241 100644
--- a/winsup/cygwin/sigproc.cc
+++ b/winsup/cygwin/sigproc.cc
@@ -461,7 +461,7 @@ proc_terminate (void)
hwait_subproc->detach ();
hwait_subproc = NULL;
- sync_proc_subproc->acquire(WPSP);
+ sync_proc_subproc->acquire (WPSP);
(void) proc_subproc (PROC_CLEARWAIT, 1);
/* Clean out zombie processes from the pid list. */
@@ -474,7 +474,7 @@ proc_terminate (void)
ForceCloseHandle1 (zombies[i]->pid_handle, pid_handle);
}
zombies[i]->process_state = PID_EXITED; /* CGF FIXME - still needed? */
- zombies[i].release(); // FIXME: this breaks older gccs for some reason
+ zombies[i].release (); // FIXME: this breaks older gccs for some reason
}
/* Disassociate my subprocesses */
@@ -564,7 +564,7 @@ sigproc_init ()
/* local event signaled when main thread has been dispatched
to a signal handler function. */
- signal_arrived = CreateEvent(&sec_none_nih, TRUE, FALSE, NULL);
+ signal_arrived = CreateEvent (&sec_none_nih, TRUE, FALSE, NULL);
ProtectHandle (signal_arrived);
hwait_sig = new cygthread (wait_sig, cygself, "sig");