Subject: CVS commit: syssrc
To: None <firstname.lastname@example.org>
From: Bill Sommerfeld <email@example.com>
Date: 12/08/1999 10:53:58
Module Name: syssrc
Committed By: sommerfeld
Date: Wed Dec 8 18:53:58 UTC 1999
Fix bug observed by Perry and myself: when emacs was shut down
uncleanly due to a lost connection, it would hang in closef() waiting
for the usecount to go back to 1.
An audit of FILE_USE() vs FILE_UNUSE() usage led me to discover some
incorrect error-path code..
In sys_fcntl(), avoid leaking a file descriptor usecount in an error
case of F_SETFL; don't return, instead go to "out" to clean up. I
suspect that the F_SETFL would fail because vop_fcntl is not
implemented in deadfs.
To generate a diff of this commit:
cvs rdiff -r1.61 -r1.62 syssrc/sys/kern/kern_descrip.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.