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:message-id:date:from:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; q=dns; s=default; b=YeI0nOy1mKp5MwIRyE7i5DgvC3P0MpGklmy+H02MO26 afvRUzPItH0oGCCKThB7Id5q0lER49LrXqWtKyWzrw05l2m1utFekkrHED56L2TQ Yjl1X+i5MQBnIjTwcb/T9v7m57l9J5YoyTMxndijnPcTW+9zdfdBXcpevGJYg8D4 = 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:message-id:date:from:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; s=default; bh=GmIMfP1ReSFlvqGiAYZsF1Gp2h8=; b=oSDxOOyFSMVx1fF3q cHZalh19VbFyAJS4mi7/UFO58CYu7dA3ELeLoBWOuwO1c9z6g5JufAvfoMY3DC2Z RcxsMH3DQPGlWUvhdEiKPp6cwuoJHe+vxduKKKoPIWecWyqEPFCAG2E6f6toajYj RN/G646b5u4ca/bghMMzRSdkEQ= 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=0.1 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-ig0-f181.google.com X-Received: by 10.50.138.72 with SMTP id qo8mr4423744igb.26.1398862691684; Wed, 30 Apr 2014 05:58:11 -0700 (PDT) Message-ID: <5360F350.1060204@gmail.com> Date: Wed, 30 Apr 2014 06:57:52 -0600 From: Dean Schulze <dean DOT w DOT schulze AT gmail DOT com> User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: Ctrl+c signal on Cygwin References: <536061EC DOT 6030700 AT gmail DOT com> <20140430045453 DOT GB1728 AT ednor DOT casa DOT cgf DOT cx> In-Reply-To: <20140430045453.GB1728@ednor.casa.cgf.cx> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes I run the program from cygwin. Do I have to do something more than start the .exe from cygwin to make it use the cygwin .dll? On 4/29/2014 10:54 PM, Christopher Faylor wrote: > 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 > -- 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