From: "M. Tavasti" <tawz@nic.fi>
To: root@chaos.analogic.com
Cc: Ben Greear <greearb@candelatech.com>, linux-kernel@vger.kernel.org
Subject: Re: Select with device and stdin not working
Date: 25 Jul 2001 18:27:14 +0300 [thread overview]
Message-ID: <m2g0blkp0t.fsf@akvavitix.vuovasti.com> (raw)
In-Reply-To: <Pine.LNX.3.95.1010725110441.1108A-100000@chaos.analogic.com>
In-Reply-To: "Richard B. Johnson"'s message of "Wed, 25 Jul 2001 11:07:04 -0400 (EDT)"
"Richard B. Johnson" <root@chaos.analogic.com> writes:
> Change:
> } else if(FD_ISSET(fileno(stdin),&rfds) ) {
> To:
> } if(FD_ISSET(fileno(stdin),&rfds) ) {
>
> Both of these bits can be (probably are) set.
You are third person to suggest that. Yes, it's good point, but
doesn't make any difference. Or it makes when both device and stdin
have something, stdin is read on second round.
But now there is nothing coming from device, and typing + pressing
enter won't make select() return like it should.
Same binary works fine with 2.0.X kernels, or if I'm having stdin
+ pipe (named or unnamed, doesn't matter). And when trying with 2.0
kernel, system was totally same except kernel version.
Anybody, can you get select working *properly* with stdin+/dev/random?
If you can, then there must be some mistake on my code.
--
M. Tavasti / tavastixx@iki.fi / +358-40-5078254
Poista sähköpostiosoitteesta molemmat x-kirjaimet
Remove x-letters from my e-mail address
next prev parent reply other threads:[~2001-07-25 15:28 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-07-25 12:17 M. Tavasti
2001-07-25 13:53 ` Ketil Froyn
2001-07-25 13:35 ` M. Tavasti
2001-07-25 14:54 ` Ketil Froyn
2001-07-25 15:02 ` Ben Greear
2001-07-25 15:07 ` Richard B. Johnson
2001-07-25 15:27 ` M. Tavasti [this message]
2001-07-25 15:45 ` Richard B. Johnson
2001-07-26 12:06 ` M. Tavasti
2001-07-26 13:20 ` M. Tavasti
2001-07-25 14:14 Stephen Landamore
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=m2g0blkp0t.fsf@akvavitix.vuovasti.com \
--to=tawz@nic.fi \
--cc=greearb@candelatech.com \
--cc=linux-kernel@vger.kernel.org \
--cc=root@chaos.analogic.com \
/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®