Throughout, change name from set_inheritance to set_no_inheritance to better
reflect input arguments of this function. * cygheap.h (CYGHEAPSIZE): Increase size of cygheap to something closer to the 21st century.
This commit is contained in:
@@ -1341,24 +1341,24 @@ fhandler_tty_common::set_close_on_exec (int val)
|
||||
else
|
||||
{
|
||||
if (output_done_event)
|
||||
set_inheritance (output_done_event, val);
|
||||
set_no_inheritance (output_done_event, val);
|
||||
if (ioctl_request_event)
|
||||
set_inheritance (ioctl_request_event, val);
|
||||
set_no_inheritance (ioctl_request_event, val);
|
||||
if (ioctl_done_event)
|
||||
set_inheritance (ioctl_done_event, val);
|
||||
set_no_inheritance (ioctl_done_event, val);
|
||||
if (inuse)
|
||||
set_inheritance (inuse, val);
|
||||
set_inheritance (output_mutex, val);
|
||||
set_inheritance (input_mutex, val);
|
||||
set_inheritance (input_available_event, val);
|
||||
set_inheritance (output_handle, val);
|
||||
set_no_inheritance (inuse, val);
|
||||
set_no_inheritance (output_mutex, val);
|
||||
set_no_inheritance (input_mutex, val);
|
||||
set_no_inheritance (input_available_event, val);
|
||||
set_no_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_no_inheritance (get_io_handle (), val);
|
||||
set_close_on_exec_flag (val);
|
||||
#endif
|
||||
}
|
||||
|
Reference in New Issue
Block a user