bug-cfengine
[Top][All Lists]
Advanced

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

Re: Signal names with autoconf?


From: Michael Beattie
Subject: Re: Signal names with autoconf?
Date: Wed, 24 Apr 2002 09:51:01 +1200
User-agent: Mutt/1.3.28i

On Tue, Apr 23, 2002 at 01:33:24PM +0200, address@hidden wrote:
[snip]
> etc. But we can no longer make a table, since 
> problem here is that we don't know all of the names
> that are defined as signals on the different platforms. There's
> a few names which are standard, but also several special ones
> which make this difficult.

Right, now I understand what the problem is.

> Perhaps we don't need all of the names in cfengine. I don't
> know what people will want to do. Users can just use the signal
> number if they want to anyway... One could return an error:
> 
>  "cfengine does not recognize this signal name, please use a number"
> 
> perhaps to get around this. THe simplest solution is to only
> support the most common names that are found on every unix.

Or, as Tim suggested, a free list with all known signals pillaged from
different Unicies..

#ifdef SIGKILL
  SIGS[sigkill] = SIGKILL
#endif
#ifdef ...

Uglyish, but it will take away any auto* dependency, and put the load on
the preprocessor where it should be, IMHO.

Mike.
-- 
Michael Beattie <address@hidden>



reply via email to

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