diff options
| author | Takashi Yano <takashi.yano@nifty.ne.jp> | 2026-03-10 11:22:08 +0900 |
|---|---|---|
| committer | Takashi Yano <takashi.yano@nifty.ne.jp> | 2026-03-12 20:30:09 +0900 |
| commit | f02f97a626aa69433651de7ce7a65f3efc010a77 (patch) | |
| tree | c5eaaa58f38a6991adcc5f2e1f6739c9c7ed2cd9 /newlib/libc/stdlib/atexit.c | |
| parent | 90556ffea1b6c005333066630e548839bed2cbbf (diff) | |
| download | newlib-main.zip newlib-main.tar.gz newlib-main.tar.bz2 | |
Cygwin: signal: Implement fake stop/cont for non-cygwin processHEADgithub/mastergithub/mainmastermain
Currently, the following command in bash cannot make `cat | cmd`
foreground correctly, and also cannot be terminated by Ctrl-C.
$ cat |cmd &
$ fg
$ (Ctrl-C)
This is because, bash does not recognize the process `cmd` as stopped
by SIGTTIN, and does not send SIGCONT not only to `cmd` but also to
`cat`.
To solve this problem, this patch implements fake stop/cont for non-
cygwin process such as `cmd`. Even with this patch, the process `cmd`
does not enter into stopped state because non-cygwin process itself
does not handle cygwin signal, but the stub process for `cmd` enters
into stopped state instead by SIGTTIN.
Signed-off-by: Takashi Yano <takashi.yano@nifty.ne.jp>
Reviewed-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'newlib/libc/stdlib/atexit.c')
0 files changed, 0 insertions, 0 deletions
