--- - branch: MAIN date: Sun Aug 5 04:26:10 UTC 2012 files: - new: '1.27' old: '1.26' path: src/sys/kern/sys_descrip.c pathrev: src/sys/kern/sys_descrip.c@1.27 type: modified id: 20120805T042610Z.3f7469d69ed590c2e1f2c1a0989df6815a858231 log: | Force sys_close not to restart by returning ERESTART. Print a diagnostic message if we ever get ERESTART out of fd_close and convert it to EINTR instead. Even if fd_close fails, it has already closed the file descriptor, so restarting the system call is a mistake, with dangerous consequences for multithreaded programs. Should probably turn the message into a kassert eventually, and maybe add one deeper in fd_close in order to more easily debug it before all the data structures are destroyed. module: src subject: 'CVS commit: src/sys/kern' unixtime: '1344140770' user: riastradh