mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "David Schwartz" <davids@webmaster.com>
To: <mathieu_dube@videotron.ca>, <linux-kernel@vger.kernel.org>
Subject: RE: accept
Date: Sun, 4 Feb 2001 16:14:52 -0800	[thread overview]
Message-ID: <NCBBLIEPOCNJOAEKBEAKGEKHNHAA.davids@webmaster.com> (raw)
In-Reply-To: <01020411401700.00110@grndctrl>


> Ok, but fd 0 cant be a valid socket since its the stdin

	Wrong. fd 0 can be a valid socket. Read the man page to 'accept' again.
Remember again that zero is a non-negative integer.

> I posted that on this mailing list coz I thought that this might
> be a scaling
> problem since it happens when theres already several clients
> connected to the
> server

	If your code called 'perror' in response to getting a zero from 'accept',
your code is broken.

	DS

-
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/

  parent reply	other threads:[~2001-02-05  0:21 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-02-04  0:42 accept Mathieu Dube
2001-02-04 11:01 ` accept David Schwartz
2001-02-04 16:37   ` accept Mathieu Dube
2001-02-04 20:27     ` accept J . A . Magallon
2001-02-05  0:14     ` David Schwartz [this message]
2001-02-05 12:59     ` accept Richard B. Johnson
     [not found] <200102040044.f140i7a473095@saturn.cs.uml.edu>
2001-02-04 16:40 ` accept Mathieu Dube
2001-02-04 18:00 accept W1012

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=NCBBLIEPOCNJOAEKBEAKGEKHNHAA.davids@webmaster.com \
    --to=davids@webmaster.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mathieu_dube@videotron.ca \
    /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®