🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: att.unix
Article #7

Re: HELP PLEASE: select() in BSD

#7
From: bfb
Date: Thu, 17 Sep 1987 13:35
25 lines
1477 bytes
---

	5.3 includes a better select() called poll().  Poll takes an array of
pollfd's a long which is the number in the array and a timeout in milliseconds.
You can also get a signal when there is something waiting to poll on.

Undocumented features:
timeouts >= than MAXINT/HZ crash the machine in strange ways in 5.3 may be fixed in
5.3.1.
If you need to sleep with a granularity in milliseconds set the fd in a pollfd to
-1 (ignore) then poll on it with the time you want to sleep in the timeout.

More stuff than you wanted to know:
5.3 comes with a million new features that nobody inside att seems to know about.
For those people that think sockects are the greatest thing since irradiated
food read about TLI in section 3N.  If you need pty's try a stream pipe and
LD0 and ntty.

For you att people still out there running 4.2, 5.3 is better and 9.5 is on
the way.

Barry Books
mtune!mtund!bfb

better is bigger
Technical Details
Message-ID: <891@mtund.ATT.COM>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!rutgers!mtune!mtund!bfb
References: <307@picuxa.UUCP>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!rutgers!mtune!mtund!bfb
From: bfb@mtund.UUCP
Newsgroups: att.unix,comp.lang.c
Subject: Re: HELP PLEASE: select() in BSD
Message-ID: <891@mtund.ATT.COM>
Date: Thu, 17-Sep-87 09:35:26 EDT
Article-I.D.: mtund.891
Posted: Thu Sep 17 09:35:26 1987
Date-Received: Sat, 19-Sep-87 08:53:43 EDT
References: <307@picuxa.UUCP>
Reply-To: bfb@mtund.UUCP (jrc-Barry Books)
Organization: AT&T ISL Middletown NJ USA
Lines: 25
Keywords: poll