From: "Filipau, Ihar" <ifilipau@sussdd.de>
To: "'linux-kernel@vger.kernel.org'" <linux-kernel@vger.kernel.org>
Subject: read() & close()
Date: Thu, 20 Mar 2003 15:14:52 +0100 [thread overview]
Message-ID: <7A5D4FEED80CD61192F2001083FC1CF9065139@CHARLY> (raw)
Hello All!
[ CC me please - I'm not subscribed ]
I have a question which goes to 2.2 kernels times.
But I expect newer kernels do the same.
I have/had a simple issue with multi-threaded programs:
one thread is doing blocking read(fd) or poll({fd}) on
file/socket.
another thread is doing close(fd).
I expected first thread will unblock with some kind
of error - but nope! It is blocked!
Is it expected behaviour?
I was implementing couple of char device
drivers and I was putting wake_up_interruptible()
into close(). Nice feature - but not more.
Does it really matters?
What standards do say about this? - I have none of
them :-(
P. S. Subject looks correct from point of view of bash:
"read() &" and then "close()" does nothing - %1 can only
be killed ;)
--- Regards&Wishes! With respect
--- Ihar "Philips" Filipau and Phil for friends
- - - - - - - - - - - - - - - - - - - - - - - - -
MCS/Mathematician - System Programmer
Ihar Filipau
Software entwickler @ SUSS MicroTec Test Systems GmbH,
Suss-Strasse 1, D-01561 Sacka (bei Dresden)
e-mail: ifilipau@sussdd.de tel: +49-(0)-352-4073-327
fax: +49-(0)-352-4073-700 web: http://www.suss.com/
next reply other threads:[~2003-03-20 14:05 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-20 14:14 Filipau, Ihar [this message]
2003-03-20 15:08 ` bert hubert
2003-03-21 12:35 ` David Schwartz
2003-03-20 16:09 Kevin Curtis
2003-03-21 8:07 Filipau, Ihar
2003-03-21 13:07 Filipau, Ihar
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=7A5D4FEED80CD61192F2001083FC1CF9065139@CHARLY \
--to=ifilipau@sussdd.de \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®