This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Ctrl+c signal on Cygwin
- From: Christopher Faylor <cgf-use-the-mailinglist-please at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Wed, 30 Apr 2014 00:54:53 -0400
- Subject: Re: Ctrl+c signal on Cygwin
- Authentication-results: sourceware.org; auth=none
- References: <536061EC dot 6030700 at gmail dot com>
- Reply-to: cygwin at cygwin dot com
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