Cygwin: pty: Avoid detach console in the process running as service.
This commit is contained in:
parent
9e06ba1ac3
commit
9bedd6807d
|
@ -1048,6 +1048,8 @@ fhandler_pty_slave::try_reattach_pcon (void)
|
||||||
|
|
||||||
/* Do not detach from the console because re-attaching will
|
/* Do not detach from the console because re-attaching will
|
||||||
fail if helper process is running as service account. */
|
fail if helper process is running as service account. */
|
||||||
|
if (get_ttyp()->attach_pcon_in_fork)
|
||||||
|
return false;
|
||||||
if (pcon_attached_to >= 0 &&
|
if (pcon_attached_to >= 0 &&
|
||||||
cygwin_shared->tty[pcon_attached_to]->attach_pcon_in_fork)
|
cygwin_shared->tty[pcon_attached_to]->attach_pcon_in_fork)
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue