Annoyed today that the BSD people had socket(2) return a single FD instead of a pair the way pipe(2) does. That necessitated shutdown(2).
@mjdominus I suspect they might have felt forced to single-FD returns by per-process and total kernel-wide FD limits back then.
-
-
@thatcks If pipe(2) could return 2 fds in 1974 when the limit was 20, why couldn't socket(2) return 2 in 1984 when the limit was 256? - View other replies
-
@mjdominus ... oh wow, I just checked and 4.2 BSD still limited processes to 20 open FDs. http://minnie.tuhs.org/cgi-bin/utree.pl?file=4.2BSD/usr/src/sys/h/param.h … -
@thatcks Thanks. When was inetd introduced? -
@mjdominus Looks like 4.3 BSD, at which point NOFILE had gone up to 64 (w/ no comments to the effect of 'cannot be higher than X due to..'). -
@thatcks Thanks again. If almost anyone else had given the answer you did, I would have scoffed. - View other replies
-
@mjdominus I honestly suspect that the BSD people didn't think that far ahead, since they were probably already in an 'add syscalls' mood.
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
Mark Jason Dominus
Chris Siebenmann