Re: Can EINTR be handled the way BSD handles it? -- a plea from a user-land programmer...

2000-11-07 Thread Theodore Y. Ts'o
From: Ulrich Drepper <[EMAIL PROTECTED]> Date: 06 Nov 2000 10:50:37 -0800 > Arguably though the bug is in glibc, in that if it's using signals > behinds the scenes, it should have passed SA_RESTART to sigaction. Why are you talking such a nonsense? The claim was made that

Re: Can EINTR be handled the way BSD handles it? -- a plea from a user-land programmer...

2000-11-07 Thread Theodore Y. Ts'o
From: Ulrich Drepper [EMAIL PROTECTED] Date: 06 Nov 2000 10:50:37 -0800 Arguably though the bug is in glibc, in that if it's using signals behinds the scenes, it should have passed SA_RESTART to sigaction. Why are you talking such a nonsense? The claim was made that pthreads

Re: Can EINTR be handled the way BSD handles it? -- a plea from a user-land programmer...

2000-11-06 Thread kuznet
Hello! > Glibc has to use signals because there *still* is not mechanism in the > kernel to allow synchronization. Could you tell why does it use SA_INTERRUPT on its internal signals? Alexey - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to

Re: Can EINTR be handled the way BSD handles it? -- a plea from a user-land programmer...

2000-11-06 Thread Ulrich Drepper
Ulrich Drepper <[EMAIL PROTECTED]> writes: > "Theodore Y. Ts'o" <[EMAIL PROTECTED]> writes: > > > Arguably though the bug is in glibc, in that if it's using signals > > behinds the scenes, it should have passed SA_RESTART to sigaction. > > Why are you talking such a nonsense? [Note to self:

Re: Can EINTR be handled the way BSD handles it? -- a plea from a user-land programmer...

2000-11-06 Thread Ulrich Drepper
"Theodore Y. Ts'o" <[EMAIL PROTECTED]> writes: > Arguably though the bug is in glibc, in that if it's using signals > behinds the scenes, it should have passed SA_RESTART to sigaction. Why are you talking such a nonsense? > > However, from a portability point of view, you should *always*

Re: Can EINTR be handled the way BSD handles it? -- a plea from a user-land programmer...

2000-11-06 Thread Ulrich Drepper
"Theodore Y. Ts'o" [EMAIL PROTECTED] writes: Arguably though the bug is in glibc, in that if it's using signals behinds the scenes, it should have passed SA_RESTART to sigaction. Why are you talking such a nonsense? However, from a portability point of view, you should *always* surround

Re: Can EINTR be handled the way BSD handles it? -- a plea from a user-land programmer...

2000-11-06 Thread kuznet
Hello! Glibc has to use signals because there *still* is not mechanism in the kernel to allow synchronization. Could you tell why does it use SA_INTERRUPT on its internal signals? Alexey - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to

Re: Can EINTR be handled the way BSD handles it? -- a plea from a user-land programmer...

2000-11-03 Thread David Feuer
I seem to recall when reading about sigaction in APUE, that while sigaction solves many of the races that can come up with various "signal" implementations, there were still some cases where there was no way to do what was desired without races. Is there ANY way (in theory, at least) to

Re: Can EINTR be handled the way BSD handles it? -- a plea from a user-land programmer...

2000-11-03 Thread dean gaudet
On Fri, 3 Nov 2000 [EMAIL PROTECTED] wrote: > I don't mean this to sound like a rant. It's just that I can't possibly > ascertain why someone in their right mind would want any behaviour > different than SA_RESTART. study apache 1.3's child_main code, you'll see an example of EINTR in use.

Re: Can EINTR be handled the way BSD handles it? -- a plea from a user-land programmer...

2000-11-03 Thread H. Peter Anvin
Followup to: <[EMAIL PROTECTED]> By author:[EMAIL PROTECTED] In newsgroup: linux.dev.kernel > > Hello! > > > > Can we _PLEASE_PLEASE_PLEASE_ not do this anymore and have the kernel do > > > what BSD does: re-start the interrupted call? > > > > This is crap. Returning EINTR is necessary

Re: Can EINTR be handled the way BSD handles it? -- a plea from a user-land programmer...

2000-11-03 Thread Richard B. Johnson
On Fri, 3 Nov 2000 [EMAIL PROTECTED] wrote: > Considering that the threading library for Linux uses signals to make it > work, would it be possible to change the Linux kernel to operate the way > BSD does--instead of returning EINTR, just restart the interrupted > primitive? > It's just how the

Re: Can EINTR be handled the way BSD handles it? -- a plea from a user-land programmer...

2000-11-03 Thread kuznet
Hello! > > Can we _PLEASE_PLEASE_PLEASE_ not do this anymore and have the kernel do > > what BSD does: re-start the interrupted call? > > This is crap. Returning EINTR is necessary for many applications. Just reminder: this "crap" is default behaviour of Linux nowadays. 8)8) Alexey - To

Re: Can EINTR be handled the way BSD handles it? -- a plea from a user-land programmer...

2000-11-03 Thread george
Ulrich Drepper wrote: > > [EMAIL PROTECTED] writes: > > > Can we _PLEASE_PLEASE_PLEASE_ not do this anymore and have the kernel do > > what BSD does: re-start the interrupted call? > > This is crap. Returning EINTR is necessary for many applications. > > -- > ---.

Re: Can EINTR be handled the way BSD handles it? -- a plea from a user-land programmer...

2000-11-03 Thread Ulrich Drepper
[EMAIL PROTECTED] writes: > Can we _PLEASE_PLEASE_PLEASE_ not do this anymore and have the kernel do > what BSD does: re-start the interrupted call? This is crap. Returning EINTR is necessary for many applications. -- ---. ,-. 1325 Chesapeake Terrace

Can EINTR be handled the way BSD handles it? -- a plea from a user-land programmer...

2000-11-03 Thread george
Considering that the threading library for Linux uses signals to make it work, would it be possible to change the Linux kernel to operate the way BSD does--instead of returning EINTR, just restart the interrupted primitive? For example, if I'm using read(2) to read data from a file descriptor,

Can EINTR be handled the way BSD handles it? -- a plea from a user-land programmer...

2000-11-03 Thread george
Considering that the threading library for Linux uses signals to make it work, would it be possible to change the Linux kernel to operate the way BSD does--instead of returning EINTR, just restart the interrupted primitive? For example, if I'm using read(2) to read data from a file descriptor,

Re: Can EINTR be handled the way BSD handles it? -- a plea from a user-land programmer...

2000-11-03 Thread Ulrich Drepper
[EMAIL PROTECTED] writes: Can we _PLEASE_PLEASE_PLEASE_ not do this anymore and have the kernel do what BSD does: re-start the interrupted call? This is crap. Returning EINTR is necessary for many applications. -- ---. ,-. 1325 Chesapeake Terrace

Re: Can EINTR be handled the way BSD handles it? -- a plea from a user-land programmer...

2000-11-03 Thread george
Ulrich Drepper wrote: [EMAIL PROTECTED] writes: Can we _PLEASE_PLEASE_PLEASE_ not do this anymore and have the kernel do what BSD does: re-start the interrupted call? This is crap. Returning EINTR is necessary for many applications. -- ---.

Re: Can EINTR be handled the way BSD handles it? -- a plea from a user-land programmer...

2000-11-03 Thread kuznet
Hello! Can we _PLEASE_PLEASE_PLEASE_ not do this anymore and have the kernel do what BSD does: re-start the interrupted call? This is crap. Returning EINTR is necessary for many applications. Just reminder: this "crap" is default behaviour of Linux nowadays. 8)8) Alexey - To

Re: Can EINTR be handled the way BSD handles it? -- a plea from a user-land programmer...

2000-11-03 Thread Richard B. Johnson
On Fri, 3 Nov 2000 [EMAIL PROTECTED] wrote: Considering that the threading library for Linux uses signals to make it work, would it be possible to change the Linux kernel to operate the way BSD does--instead of returning EINTR, just restart the interrupted primitive? It's just how the

Re: Can EINTR be handled the way BSD handles it? -- a plea from a user-land programmer...

2000-11-03 Thread H. Peter Anvin
Followup to: [EMAIL PROTECTED] By author:[EMAIL PROTECTED] In newsgroup: linux.dev.kernel Hello! Can we _PLEASE_PLEASE_PLEASE_ not do this anymore and have the kernel do what BSD does: re-start the interrupted call? This is crap. Returning EINTR is necessary for many

Re: Can EINTR be handled the way BSD handles it? -- a plea from a user-land programmer...

2000-11-03 Thread dean gaudet
On Fri, 3 Nov 2000 [EMAIL PROTECTED] wrote: I don't mean this to sound like a rant. It's just that I can't possibly ascertain why someone in their right mind would want any behaviour different than SA_RESTART. study apache 1.3's child_main code, you'll see an example of EINTR in use. it's

Re: Can EINTR be handled the way BSD handles it? -- a plea from a user-land programmer...

2000-11-03 Thread David Feuer
I seem to recall when reading about sigaction in APUE, that while sigaction solves many of the races that can come up with various "signal" implementations, there were still some cases where there was no way to do what was desired without races. Is there ANY way (in theory, at least) to