+2003-12-07 Christopher Faylor <cgf@redhat.com>
+
+ * spawn.cc (spawn_guts): Change type back to 'int' after erroneous
+ change below.
+
2003-12-07 Christopher Faylor <cgf@redhat.com>
Change use of BOOL, TRUE, FALSE to bool, true, false, as appropriate,
void
fhandler_tty_common::set_close_on_exec (int val)
{
-#ifndef DEBUGGING
- fhandler_base::set_close_on_exec (val);
-#else
- /* FIXME: This is a duplication from fhandler_base::set_close_on_exec.
- It is here because we need to specify the "from_pty" stuff here or
- we'll get warnings from ForceCloseHandle when debugging. */
- set_inheritance (get_io_handle (), val);
- set_close_on_exec_flag (val);
-#endif
if (get_major () == DEV_TTYS_MAJOR
&& get_io_handle () == cygheap->ctty.get_io_handle ())
set_close_on_exec_flag (val);
set_inheritance (input_mutex, val);
set_inheritance (input_available_event, val);
set_inheritance (output_handle, val);
+#ifndef DEBUGGING
+ fhandler_base::set_close_on_exec (val);
+#else
+ /* FIXME: This is a duplication from fhandler_base::set_close_on_exec.
+ It is here because we need to specify the "from_pty" stuff here or
+ we'll get warnings from ForceCloseHandle when debugging. */
+ set_inheritance (get_io_handle (), val);
+ set_close_on_exec_flag (val);
+#endif
}
}
int res;
waitq *w;
HANDLE waitfor;
- bool sawsig;
pthread_testcancel ();
while (1)
{
sig_dispatch_pending ();
- sawsig = 0;
+ bool sawsig = false;
if (options & ~(WNOHANG | WUNTRACED))
{
set_errno (EINVAL);
w->rusage = r;
sigproc_printf ("calling proc_subproc, pid %d, options %d",
w->pid, w->options);
- if (!proc_subproc (PROC_WAIT, (DWORD)w))
+ if (!proc_subproc (PROC_WAIT, (DWORD) w))
{
set_errno (ENOSYS);
paranoid_printf ("proc_subproc returned 0");
{
call_signal_handler_now ();
set_sig_errno (EINTR);
- sawsig = 1;
+ sawsig = true;
res = -1;
}
else if (res != WAIT_OBJECT_0)