[lkml]   [2000]   [Nov]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Can EINTR be handled the way BSD handles it? -- a plea from a user-land programmer...
On Mon, 6 Nov 2000, George Talbot wrote:

> I respectfully disagree that programs which don't surround some of the
> most common system calls with
> do
> {
> rv = __some_system_call__(...);
> } while (rv == -1 && errno == EINTR);

welcome to Unix. this is how it is, and it's not just linux. and it's
not just glibc/linuxthreads. in your code do you go about setting all
signals to SA_RESTART? if not then you're subject to the vagaries of
whatever the default signal settings are.

ted mentioned ^Z... there's also strace/truss/ktrace (depending on your
flavour of unix). there's also page-out/in (and on some unixes there's

it's something which bites lots of folks. gnu tar had this bug for at
least 5 years, and may still have it -- i got tired of submitting the bug


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

 \ /
  Last update: 2005-03-22 12:45    [W:0.041 / U:0.288 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site