Re: signal handlers
Richard Braun <[email protected]> Mon, 7 Sep 2015 17:39:33 +0200
| Newsgroups | gmane.os.hurd.general |
|---|---|
| Message-ID | <20150907153932.GA32653@shattrath> |
On Mon, Sep 07, 2015 at 04:08:52PM +0200, Lukas Himsel wrote: > For you it sounds very stupid, but I have almost no experience with gnu > hurd, particularly in programming. I want to port a C Program to Hurd. > My questions are: > Can I use signal() from <signal.h> with all the signals, the same way as > in Linux and BSD? Or are in Hurd different headers and functions for > signal handlers? > > Sorry for My bad english and the stupid questions ;D > Is this the right mailing list? Doesn't sound stupid to me. First of all, don't use signal(), it's obsolete, precisely because its semantics change too much from one Unix-like system to the other. Use sigaction() instead. Then, the Hurd is mostly POSIX compliant, which means it should work just as it does on other Unix-like systems. That being said, we know there are some tricky bugs related to signal handling that you may encounter, but basically signals do work fine. -- Richard Braun