delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/03/20/05:15:55

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:reply-to:message-id:to:subject
:mime-version:content-type:content-transfer-encoding; q=dns; s=
default; b=cRU1GNLLIsfzBD7G5z83mLmGRQOecYrtulkyE7sDgYepXuz/cI8pz
Dg+GRyKyEK2710unssgyiJt0snlJMYpApZXH/xCBjIbOE0GfBY5Qi7/ppn0yIR2b
nEwNB+X6KyjXxuGyZMHL21KvJqker2/Q7g3zxUaMXI/YthhsHF+YvQ=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:reply-to:message-id:to:subject
:mime-version:content-type:content-transfer-encoding; s=default;
bh=cf8Sy7hJTLt4YI2ns3axNd8KXQ4=; b=lSB/oHd4MyfURdS+wxpWuwF//oQe
SURiQY+0Zx7iMRa2UFNH+bEYbInofH207YrWJfrO6sjMLIrdTjrwF/zx8bNlTCri
oB4u3orS2CKw6NkWzUkP0OaFwx2+kerLF4dpADeWMLKEnu43YRqNFKbLADain6Vm
0I0V1tw6hRnQIHI=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=2.5 required=5.0 tests=AWL,BAYES_20,FREEMAIL_FROM,KAM_FROM_URIBL_PCCC,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.2
X-HELO: mail-lb0-f177.google.com
X-Received: by 10.112.210.230 with SMTP id mx6mr41437504lbc.64.1426842931941; Fri, 20 Mar 2015 02:15:31 -0700 (PDT)
Date: Fri, 20 Mar 2015 12:15:30 +0300
From: Ilya Basin <basinilya AT gmail DOT com>
Reply-To: Ilya Basin <basinilya AT gmail DOT com>
Message-ID: <1455102057.20150320121530@gmail.com>
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Subject: Prevent Ctrl-C kill native process
MIME-Version: 1.0

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019