From: bert hubert <ahu@ds9a.nl>
To: "Filipau, Ihar" <ifilipau@sussdd.de>
Cc: "'linux-kernel@vger.kernel.org'" <linux-kernel@vger.kernel.org>
Subject: Re: read() & close()
Date: Thu, 20 Mar 2003 16:08:20 +0100 [thread overview]
Message-ID: <20030320150820.GA25359@outpost.ds9a.nl> (raw)
In-Reply-To: <7A5D4FEED80CD61192F2001083FC1CF9065139@CHARLY>
On Thu, Mar 20, 2003 at 03:14:52PM +0100, Filipau, Ihar wrote:
> I have/had a simple issue with multi-threaded programs:
>
> one thread is doing blocking read(fd) or poll({fd}) on
> file/socket.
You can't do poll on a file, it won't tell you anything useful, so I assume
you mean a socket.
> another thread is doing close(fd).
>
> I expected first thread will unblock with some kind
> of error - but nope! It is blocked!
Can you show code with this problem?
Regards,
bert
--
http://www.PowerDNS.com Open source, database driven DNS Software
http://lartc.org Linux Advanced Routing & Traffic Control HOWTO
http://netherlabs.nl Consulting
next prev parent reply other threads:[~2003-03-20 14:57 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-20 14:14 Filipau, Ihar
2003-03-20 15:08 ` bert hubert [this message]
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=20030320150820.GA25359@outpost.ds9a.nl \
--to=ahu@ds9a.nl \
--cc=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®