Re: signalfd()

Liste des GroupesRevenir à cu programmer 
Sujet : Re: signalfd()
De : Muttley (at) *nospam* DastardlyHQ.org
Groupes : comp.unix.programmer
Date : 24. Feb 2025, 16:51:29
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vpi4i1$16dip$1@dont-email.me>
References : 1 2
On Mon, 24 Feb 2025 14:18:44 GMT
scott@slp53.sl.home (Scott Lurndal) wibbled:
Muttley@DastardlyHQ.org writes:
Hi
>
I've been playing around with signalfd() on linux and it seems to work but
there also seems to be zero information other than the signal number in the
signalfd_siginfo structure returned from a read().
>
Where I'd expect PID and UID to be set as in reception of a signal handler
set using sigaction with the siginfo_t passed to the handler, the below code
returns 0 for everything in the signalfd_siginfo structure.
>
I wonder if you still need to call sigaction with SA_SIGINFO before
using signalfd?

Actually my mistake - the pid and uid are only zerop when it receives a signal
from the terminal but when another process sends it it works ok. Thanks for
the idea though.


Date Sujet#  Auteur
24 Feb 25 * signalfd()4Muttley
24 Feb 25 +- Re: signalfd()1Rainer Weikusat
24 Feb 25 `* Re: signalfd()2Muttley
24 Feb 25  `- Re: signalfd()1Lawrence D'Oliveiro

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal