Prevent Ctrl-C kill native process
Ilya Basin
basinilya@gmail.com
Fri Mar 20 09:40:00 GMT 2015
How to tell Cygwin not to kill a native process when I press Ctrl-C ?
I tried to run it in background, but it doesn't help, when its output
is piped.
Compare these:
( while true; do echo aaa; sleep 1; done & ) | ( trap '' INT; cat )
( while true; do echo aaa; sleep 1; done ) | ( trap '' INT; cat )
( /cygdrive/c/Windows/system32/ping -t localhost ) | ( trap '' INT; cat )
( /cygdrive/c/Windows/system32/ping -t localhost & ) | ( trap '' INT; cat )
The last command should not die, when I press Ctrl-C, but it dies
anyway.
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
More information about the Cygwin
mailing list