From: george@moberg.com
To: Ulrich Drepper <drepper@cygnus.com>, linux-kernel@vger.kernel.org
Subject: Re: Can EINTR be handled the way BSD handles it? -- a plea from a user-land programmer...
Date: Fri, 03 Nov 2000 14:49:37 -0500 [thread overview]
Message-ID: <3A0316D1.C96AADFC@moberg.com> (raw)
In-Reply-To: <3A03120A.DFC62AD5@moberg.com> <m3y9z0g7wp.fsf@otr.mynet.cygnus.com>
Ulrich Drepper wrote:
>
> george@moberg.com 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
> Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
> Red Hat `--' drepper at redhat.com `------------------------
After reading about SA_RESTART, ok. However, couldn't those
applications that require it enable this behaviour explicitly?
The problem I'm having right now is with pthread_create() failing
because deep somewhere in either the kernel or glibc, nanosleep()
returns EINTR during said pthread_create() and pthread_create() fails.
I've got a multithreaded program written using gcc (2.95.2) and glibc
(2.1.3), and it's talking to a natively threaded Java program (tried
both Sun & Blackdown ports, both 1.2.2 and 1.3) on a 2.2.17 kernel. The
C program is listening for incoming socket connections, and the Java
program is hammering on it with many parallel connect() calls. After a
short, a bit random interval, pthread_create() will fail in either my
program, or deep in the Java VM. I assume that the Java VM is using
pthread_create().
I don't mean to sound like a psycho on this, but I can't see why
SA_RESTART isn't the default behavior. Maybe I'm missing something
somewhere.
--
George T. Talbot
<george at moberg dot com>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
next prev parent reply other threads:[~2000-11-03 19:49 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-11-03 19:29 Can EINTR be handled the way BSD handles it? -- a plea from a user-land programmer george
2000-11-03 19:41 ` Ulrich Drepper
2000-11-03 19:49 ` george [this message]
2000-11-03 21:34 ` dean gaudet
2000-11-03 19:51 ` kuznet
2000-11-03 21:24 ` H. Peter Anvin
2000-11-03 20:20 ` Richard B. Johnson
-- strict thread matches above, loose matches on Subject: below --
2000-11-04 3:06 David Feuer
[not found] <20001105042410.C3961@fuji.laendle>
2000-11-06 14:13 ` George Talbot
2000-11-06 16:55 ` Theodore Y. Ts'o
2000-11-06 18:50 ` Ulrich Drepper
2000-11-06 19:11 ` Ulrich Drepper
2000-11-06 19:37 ` kuznet
2000-11-07 15:53 ` Theodore Y. Ts'o
2000-11-07 4:46 ` dean gaudet
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3A0316D1.C96AADFC@moberg.com \
--to=george@moberg.com \
--cc=drepper@cygnus.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.