From: "Brad Bonkoski" <bbonkoski@xyterra.com>
To: "lkml" <linux-kernel@vger.kernel.org>
Subject: Fw: select(2)
Date: Fri, 3 Aug 2001 13:34:34 -0700 [thread overview]
Message-ID: <03f101c11c5b$b53a19d0$6e00a8c0@BBONKOSKI> (raw)
----- Original Message -----
From: "Brad Bonkoski" <bbonkoski@xyterra.com>
To: <redhat-list@redhat.com>
Sent: Friday, August 03, 2001 10:15 AM
Subject: select(2)
> Hello,
>
> this code:
> fd_set set;
> struct timeval timeout;
> int len_inet;
> int n;
> FD_ZERO(&set);
> timeout.tv_sec = 1L;
> FD_SET(sc_sock,&set);
> n = select(sc_sock+1, &set, NULL, NULL, &timeout);
> if (n == -1)
>
> perror("select()\n");
> exit(1);
> }
>
> Works just fine on one machine, i.e. select() does not return a '-1' which
lets it run through the rest of the code. However, on other machines, it
does not work fine, -1 is always returned by select() with error of: Invalid
arguement
>
> Any ideas on where I could look to fix this problem? Something in the
syntax of the posted code, or should I be looking at the creation of the
socket?
> TIA.
> Brad
>
>
>
>
>
next reply other threads:[~2001-08-03 20:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-08-03 20:34 Brad Bonkoski [this message]
2001-08-04 1:42 ` Fw: select(2) Matti Aarnio
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='03f101c11c5b$b53a19d0$6e00a8c0@BBONKOSKI' \
--to=bbonkoski@xyterra.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox