Module Name: src Committed By: martin Date: Tue Mar 7 19:52:02 UTC 2023
Modified Files: src/sys/dev/usb [netbsd-10]: ucom.c Log Message: Pull up following revision(s) (requested by thorpej in ticket #113): sys/dev/usb/ucom.c: revision 1.137 In the HUP-wait path in ucomopen(): - Use cv_timedwait() rather than cv_timedwait_sig(); the wait here is bounded (and fairly short besides) and seems appropriate to treat like other uninterruptible waits. The behavior is now consistent with com(4) in this regard. - Map EWOULDBLOCK return from cv_timedwait() to 0, as the successful passage of time is not an error in this case. - If the HUP-wait time has passed, clear the HUP-wait timestamp. PR kern/57259 (although insufficient -- another change to vfs_syscalls.c is required) To generate a diff of this commit: cvs rdiff -u -r1.134.2.1 -r1.134.2.2 src/sys/dev/usb/ucom.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.