From: Jamie Lokier <jamie@shareable.org>
To: Peter Asemann <sipeasem@immd3.informatik.uni-erlangen.de>
Cc: linux-kernel@vger.kernel.org
Subject: Re: PROBLEM: struct siginfo member si_fd not properly filled in handler after SIGIO (2.4.x) - offending POSIX specs?
Date: Sat, 12 Jul 2003 21:23:17 +0100 [thread overview]
Message-ID: <20030712202317.GA10954@mail.jlokier.co.uk> (raw)
In-Reply-To: <200307111426.h6BEQZi1001897@faui31x.informatik.uni-erlangen.de>
Peter, in addition to:
if (fcntl(fd,F_SETOWN,getpid()) == -1) {perror("fault");}
you need to write:
if (fcntl(fd,F_SETSIG,SIGIO) == -1) {perror("fault");}
The fcntl() man page describes F_SETSIG. You'll also need to #define
_GNU_SOURCE as F_SETSIG isn't defined otherwise.
Enjoy,
-- Jamie
prev parent reply other threads:[~2003-07-12 20:10 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-07-11 14:26 PROBLEM: struct siginfo member si_fd not properly filled in handler after SIGIO (2.4.x) - offending POSIX specs? Peter Asemann
2003-07-12 20:23 ` Jamie Lokier [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030712202317.GA10954@mail.jlokier.co.uk \
--to=jamie@shareable.org \
--cc=linux-kernel@vger.kernel.org \
--cc=sipeasem@immd3.informatik.uni-erlangen.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).