summaryrefslogtreecommitdiffstats
path: root/bin/ed
diff options
context:
space:
mode:
authortruckman <truckman@FreeBSD.org>2003-06-13 06:58:11 +0000
committertruckman <truckman@FreeBSD.org>2003-06-13 06:58:11 +0000
commit6f638a74384903948dbaa4df249d983cc56be75c (patch)
treeb880b4df5a817fe3e66f83f5b7c58a666cfbe449 /bin/ed
parentd2198cef89d5fa9da656125ae26206eaa7fefdb9 (diff)
downloadFreeBSD-src-6f638a74384903948dbaa4df249d983cc56be75c.zip
FreeBSD-src-6f638a74384903948dbaa4df249d983cc56be75c.tar.gz
Clean up the fifo_open() implementation:
Restructure the error handling portion of the resource allocation code to eliminate duplicated code. Test for the O_NONBLOCK && fi_readers == 0 case before incrementing fi_writers and modifying the the socket flag to avoid having to undo these operations in this error case. Restructure and simplify the code that handles blocking opens. There should be no change to functionality.
Diffstat (limited to 'bin/ed')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud