Bugtraq mailing list archives

Re: RPC protocol problem?


From: dsg () blackbird mitre org (Dave Goldberg)
Date: Thu, 25 Aug 1994 11:14:36 -0400


Jukka Ukkonen <Jukka.Ukkonen () csc fi> writes:

Jukka> For some reason Irix-5.x seems to need re-initialization of the
Jukka> signal handler. Well, this is an old SysV practice. Of this I
Jukka> am aware but it still doesn't look like a handy thing to my
Jukka> tastes.  Waitpid() is there just because I wanted to use a
Jukka> POSIX wait- family routine when I noticed there was something
Jukka> rotting in the SIGCHLD catching.

I don't have Irix 5.2, but I've seen this sort of thing on other
SysVR4s.  Instead of using signal to specify the handler either use
sigaction or sigset if you have it.  That specifies the POSIX behavior
rather than the old SysV behavior, and you don't have to reinit the
handler in your reap function.

Dave Goldberg
Post: The Mitre Corporation MS B020 202 Burlington Rd. Bedford, MA 01730
Phone: 617-271-3887
Domain: dsg () mitre org  UUCP: {your neighborhood}!linus!mdf!dsg 



Current thread: