public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Prevent Ctrl-C kill native process
@ 2015-03-20  9:40 Ilya Basin
  0 siblings, 0 replies; only message in thread
From: Ilya Basin @ 2015-03-20  9:40 UTC (permalink / raw)
  To: cygwin

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-03-20  9:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-20  9:40 Prevent Ctrl-C kill native process Ilya Basin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).