help-hurd
[Top][All Lists]
Advanced

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

Re: signal handlers


From: Richard Braun
Subject: Re: signal handlers
Date: Mon, 7 Sep 2015 17:39:33 +0200
User-agent: Mutt/1.5.23 (2014-03-12)

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



reply via email to

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