mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-18 15:09:32 +08:00
Cygwin: console: Prevent the exec'ed bash from exiting by Ctrl-C.
- Currently, bash occasionally exits by Ctrl-C with the following scenario. 1) Start bash in the command prompt. 2) Run 'exec bash'. 3) Press Ctrl-C several times. This patch fixes the issue.
This commit is contained in:
parent
eb628ca8ea
commit
d4e42ceb96
@ -594,6 +594,14 @@ sig_send (_pinfo *p, siginfo_t& si, _cygtls *tls)
|
||||
p = myself;
|
||||
}
|
||||
|
||||
/* If myself is the stub process, send signal to the child process
|
||||
rather than myself. The fact that myself->dwProcessId is not equal
|
||||
to the current process id indicates myself is the stub process. */
|
||||
if (its_me && myself->dwProcessId != GetCurrentProcessId ())
|
||||
{
|
||||
wait_for_completion = false;
|
||||
its_me = false;
|
||||
}
|
||||
|
||||
if (its_me)
|
||||
sendsig = my_sendsig;
|
||||
|
Loading…
x
Reference in New Issue
Block a user