* exceptions.cc (sig_handle_tty_stop): Reset PID_STOPPED if not actually
stopping. * fhandler_console.cc (fhandler_console::fixup_after_fork): Don't set controlling terminal if just inheriting a handle. (fhandler_console::fixup_after_exec): Ditto. * fhandler_tty.cc (fhandler_tty_slave::init): Ditto. * signal.cc (kill_worker): Set appropriate errno if proc_exists determines that process does not really exist.
This commit is contained in:
@@ -1728,7 +1728,7 @@ fhandler_console::fixup_after_fork (HANDLE)
|
||||
/* Windows does not allow duplication of console handles between processes
|
||||
so open the console explicitly. */
|
||||
|
||||
if (!open (get_name (), get_flags (), 0))
|
||||
if (!open (get_name (), O_NOCTTY | get_flags (), 0))
|
||||
system_printf ("error opening console after fork, %E");
|
||||
|
||||
if (!get_close_on_exec ())
|
||||
@@ -1758,7 +1758,7 @@ fhandler_console::fixup_after_exec (HANDLE)
|
||||
HANDLE h = get_handle ();
|
||||
HANDLE oh = get_output_handle ();
|
||||
|
||||
if (!open (get_name (), get_flags (), 0))
|
||||
if (!open (get_name (), O_NOCTTY | get_flags (), 0))
|
||||
{
|
||||
int sawerr = 0;
|
||||
if (!get_io_handle ())
|
||||
|
Reference in New Issue
Block a user