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 :content-type:content-transfer-encoding; q=dns; s=default; b=bTt v6F+8UQlNtEpFwXigc4Y8mZdLh3fZTw0xC55qjbJmJK6YJVU5ROkEMB3p7A3XX4c 7ZuaQF6gHwTuycTwhik8SPA1NEIBpHsKzrzg74x5jQrknLrSw0L6FLMEtjnvEPWw Hqug5i2kRn2n2aNOXomBM+EECSrS12a1HGc6j7nY= 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 :content-type:content-transfer-encoding; s=default; bh=pzQ1dng7H CJ+0DwZPNn0yRus/vg=; b=s1A1RHJ4q6BfFvsdlj1Q8e5XYD8apPWfVfqWb6kNp w9/u9LVkb3b7GkVZWexVHgeAtzzEniWxfpxz3MvBzjnv9rGePpZLzGbCJhncYoYH vpjK8LBf8mbYL1GcydO4J/ews7EFIf1feQnz8lKemrpNc3tX05XcFOxVdx9NxUzM nA= 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=1.4 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-ie0-f177.google.com X-Received: by 10.42.106.15 with SMTP id x15mr1172817ico.67.1398825466363; Tue, 29 Apr 2014 19:37:46 -0700 (PDT) Message-ID: <536061EC.6030700@gmail.com> Date: Tue, 29 Apr 2014 20:37:32 -0600 From: Dean Schulze 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: Ctrl+c signal on Cygwin Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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") } -- 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