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:to:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; q=dns; s= default; b=Gh1VoU9aN60/2cEoVdepkmNixqyJbJ+1ggWJkPlX1Ex+qdqN9iJwN 0KPnqL9VI/WJk/PpogkeVHRwDmzTd61CSB3/+NZoG1OCggGYbFm644+mbuW3UFbR tS/1n68ulE1HTMjWgbWgfX10GCuiTmbtRoqzdR+1oS318RlR1Gq5Rs= 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:to:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; s=default; bh=OqkXVS5lce9szQjRmyo85Vvi7rI=; b=IuphUPT7F0Ibi++tIsV5+4ANE7m/ zAbLoD/vCOicZ+3d7QZ62qwJeI/eHoknvBfe/tftI7wFcHvvIo3BikuKzT34TAom hgvOsmLAmmMzSKIt07hPZFsWl5S8GlhotSjuzMQOYyL22cIfrqjpt/C3UQclnvoF EbJxt+FTGYOMIoI= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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=-5.7 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,RCVD_IN_SEMBACKSCATTER autolearn=no version=3.3.2 X-HELO: mho-02-ewr.mailhop.org X-Mail-Handler: Dyn Standard SMTP by Dyn X-Report-Abuse-To: abuse AT dyndns DOT com (see http://www.dyndns.com/services/sendlabs/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX19aI7zBtGmhFtAvTR4Yu3ic Date: Wed, 30 Apr 2014 00:54:53 -0400 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: Ctrl+c signal on Cygwin Message-ID: <20140430045453.GB1728@ednor.casa.cgf.cx> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <536061EC DOT 6030700 AT gmail DOT com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <536061EC.6030700@gmail.com> User-Agent: Mutt/1.5.20 (2009-06-14) On Tue, Apr 29, 2014 at 08:37:32PM -0600, Dean Schulze wrote: >The golang code below doesn't detect any signals when run on cygwin and >I hit Ctrl+c. When I run it from a DOS shell it does catch a signal >when from Ctrl+c. > >What kind of signal does Cygwin send when Ctrl+c is typed? > >func main() { > > c := make(chan os.Signal, 1) > signal.Notify(c, os.Interrupt) > go func(){ > for sig := range c { > fmt.Println(sig.String()) > } > }() > > time.Sleep(5000 * time.Millisecond) > fmt.Println("Done") >} We need more details. Does the above program use the Cygwin DLL? If not, then it won't understand Cygwin signals. -- 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