On Tue, Aug 22, 2000 at 09:44:42PM +0000, Herbert Xu wrote:
> Jill Rowling <[EMAIL PROTECTED]> wrote:
> >
> > Actually signal 9 seems to be the only common signal number with the
> > different Unixes.
>
> You mean there is a Unix out there that doesn't have TERM on 15, or 2 on INT?
I was about to post something similar to this last night, but
thought I should look it up first. I knew that the FreeBSD.org
web pages have links to on-line man pages for a whole host of
versions of Unix, from V7 on. Lo: just about everyone has
identical SIG numbers to V7, from 1 to 15. Just as you would
expect. Things get a little weirder for the extended sigs above
that. Solaris (SunOS5.7), for example, has 36 fixed-function
signals and an indeterminate (varies at run-time) number of
real-time signals.
Then I looked at the RedHat 6.2 pages. Whew! Even some of the
ones below 15 have weird meanings! All of the signals above 15
have two or three different encodings, depending on what
platform you're using. That seems weird, but I guess that's a
reflection of compatability with whatever the native version of
Unix is on that platform. NetBSD is in the same position wrt
multi-platform compatability, and their man pages simply don't
include the signal numbers at all. They list the names, and
refer to signal.h for the numbers.
At least these ones seem to be universal:
1 HUP (hang up)
2 INT (interrupt)
3 QUIT (quit)
6 ABRT (abort)
9 KILL (non-catchable, non-ignorable kill)
14 ALRM (alarm clock)
15 TERM (software termination signal)
Well, excluding plan-9, which doesn't seem to have the concept
of a numbered signal.
--
Andrew
--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug