Date: Sun, 6 Jan 2002 11:55:03 -0300 (ART) From: "Fernando P. Schapachnik" <fpscha@servidor1.cursosvirtuales.com.ar> To: Terry Lambert <tlambert2@mindspring.com> Cc: fernando@cursosvirtuales.com.ar, freebsd-hackers@freebsd.org Subject: Re: SA_NODEFER and signal nesting Message-ID: <200201061455.g06Et3x71619@servidor1.cursosvirtuales.com.ar> In-Reply-To: <3C376D8D.CBEA1BF@mindspring.com> "from Terry Lambert at Jan 5, 2002 01:18:05 pm"
next in thread | previous in thread | raw e-mail | index | archive | help
Terry Lambert wrote: > Yes. Signals are persistant conditions, not events. Aha... That explains it. > When you get the first SIGIO, set a flag (volatile) in the > signal handler. In your main loop, check for the flag, and > if it is present, use poll/select to verify that there is > data pending, and while there is data pending, retrieve it. I've recoded this way and it works. Not as clean as I would prefer (because my program is a distributed number cruncher and I'd tried to make a clean separation between main processing and net I/O), but works. Thanks for you help. Fernando P. Schapachnik fernando@cvi.com.ar To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200201061455.g06Et3x71619>