[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] replace signal with sigaction

From: John Cowan
Subject: Re: [Chicken-users] replace signal with sigaction
Date: Thu, 29 Sep 2011 10:44:42 -0400
User-agent: Mutt/1.5.18 (2008-05-17)

Alan Post scripsit:

> It used to be one tested for sigaction in the same way you might
> test for other features.  I'm not sure if chicken runs on a
> platform that doesn't have sigaction--do I need to add a feature
> test for this and preserve the existing capability on platforms
> without sigaction?

Win32 systems (not including Cygwin) have signal() but not sigaction().
The only signals on Win32 are SIGABRT, SIGFPE, and SIGSEGV.  SIGILL and
SIGTERM can be trapped, but they can only happen if you raise them
yourself with raise().  SIGINT can also be trapped, but that's a bad
idea, because the handler will be run on a separate Win32 thread.

All of our other hosts implement sigaction().

But the next day there came no dawn,            John Cowan
and the Grey Company passed on into the         address@hidden
darkness of the Storm of Mordor and were
lost to mortal sight; but the Dead
followed them.          --"The Passing of the Grey Company"

reply via email to

[Prev in Thread] Current Thread [Next in Thread]