Unix Programming - Re: Interrupting read() call by SIGALRM in multithreaded application

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > July 2005 > Re: Interrupting read() call by SIGALRM in multithreaded application





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: Interrupting read() call by SIGALRM in multithreaded application
Ulrich Hobelmann

2005-07-26, 5:57 pm

Rafal Krypa wrote:
> On 2005-07-26, David Schwartz <davids@webmaster.com> wrote:
>
>
> Thanks a lot for your response. But I don't wand to interrupt a socket call - I
> am trying to interrupt read() on character device (serial port).
> Do I still have to use select()?


I think you could block signals in the thread that reads the
socket, and have it unblocked in the read()ing thread.

--
XML is a prime example of retarded innovation.
-- Erik Meijer and Peter Drayton, Microsoft Corporation
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com