linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* SIGIO interrupts poll
@ 2004-02-03 16:59 redsprite
  2004-02-03 22:47 ` Glynn Clements
  0 siblings, 1 reply; 2+ messages in thread
From: redsprite @ 2004-02-03 16:59 UTC (permalink / raw)
  To: linux-c-programming


I'm working on a large software project and two of the developers have coded each other into a corner.

Specifically, one thread catches SIGIO to read from a hardware device over the serial port. A second thread uses poll() to read from some sockets to other computers.

Independently they work, but when put together the thread that catches SIGIO is preventing the socket-reading thread from getting any of its data.

Is there a way to have the SIGIO handler re-throw the signal so the thread using poll() can catch it?

Andrea

_______________________________________________
No banners. No pop-ups. No kidding.
Introducing My Way - http://www.myway.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: SIGIO interrupts poll
  2004-02-03 16:59 SIGIO interrupts poll redsprite
@ 2004-02-03 22:47 ` Glynn Clements
  0 siblings, 0 replies; 2+ messages in thread
From: Glynn Clements @ 2004-02-03 22:47 UTC (permalink / raw)
  To: redsprite; +Cc: linux-c-programming


redsprite wrote:

> I'm working on a large software project and two of the developers have
> coded each other into a corner.
> 
> Specifically, one thread catches SIGIO to read from a hardware device
> over the serial port. A second thread uses poll() to read from some
> sockets to other computers.
> 
> Independently they work, but when put together the thread that catches
> SIGIO is preventing the socket-reading thread from getting any of its
> data.
> 
> Is there a way to have the SIGIO handler re-throw the signal so the
> thread using poll() can catch it?

If you don't need the siginfo_t, you can use pthread_kill() to send a
signal to a specific thread.

-- 
Glynn Clements <glynn.clements@virgin.net>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-02-03 22:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-03 16:59 SIGIO interrupts poll redsprite
2004-02-03 22:47 ` Glynn Clements

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).