This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Prevent Ctrl-C kill native process
- From: Ilya Basin <basinilya at gmail dot com>
- To: cygwin at cygwin dot com <cygwin at cygwin dot com>
- Date: Fri, 20 Mar 2015 12:15:30 +0300
- Subject: Prevent Ctrl-C kill native process
- Authentication-results: sourceware.org; auth=none
- Reply-to: Ilya Basin <basinilya at gmail dot com>
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