NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: kern/57259: ucom serial ports cannot be re-opened "too quickly" with O_NONBLOCK
The following reply was made to PR kern/57259; it has been noted by GNATS.
From: "J. Hannken-Illjes" <hannken%mailbox.org@localhost>
To: NetBSD GNATS <gnats-bugs%netbsd.org@localhost>
Cc:
Subject: Re: kern/57259: ucom serial ports cannot be re-opened "too quickly"
with O_NONBLOCK
Date: Sun, 5 Mar 2023 14:08:29 +0100
--Apple-Mail=_B7EE0227-00F7-4374-936C-A68A2934D286
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
charset=us-ascii
> On 5. Mar 2023, at 14:00, Taylor R Campbell <riastradh%NetBSD.org@localhost> wrote:
>
> I tried chasing down where this ERESTART->EINTR map came from,
> and...it's been buried by the AT&T lawsuit. It first appeared in
> vfs_syscalls.c 1.31, but all revisions up through 1.30 were expunged
> from history.
According to the CSRG repo this is:
--- vfs_syscalls.c (revision 40883)
+++ vfs_syscalls.c (revision 40884)
@@ -14,7 +14,7 @@
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
- * @(#)vfs_syscalls.c 7.42 (Berkeley) 03/26/90
+ * @(#)vfs_syscalls.c 7.43 (Berkeley) 04/10/90
*/
#include "param.h"
@@ -530,8 +530,10 @@
if (error = vn_open(ndp, fmode, (cmode & 07777) &~ S_ISVTX)) {
crfree(fp->f_cred);
fp->f_count--;
- if (error == -1) /* XXX from fdopen */
- return (0); /* XXX from fdopen */
+ if (error == EJUSTRETURN) /* XXX from fdopen */
+ return (0); /* XXX from fdopen */
+ if (error == ERESTART)
+ error = EINTR;
scp->sc_ofile[indx] = NULL;
return (error);
}
with log message
r40884 | mckusick | 1990-04-10 22:36:33 +0200 (Tue, 10 Apr 1990) | 3 lines
eliminate longjmp from the kernel (for karels)
--
J. Hannken-Illjes - hannken%mailbox.org@localhost
--Apple-Mail=_B7EE0227-00F7-4374-936C-A68A2934D286
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename=signature.asc
Content-Type: application/pgp-signature;
name=signature.asc
Content-Description: Message signed with OpenPGP
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCAAdFiEEyLVMkhxs8fxixv+2IOocBq6p/bMFAmQElE0ACgkQIOocBq6p
/bPccg//SrrRwKlt8/I6ZBUum1Pqw79rHYRJZcTBVmQNmII+HlLw30fXJlJM+kKo
qyR+BIFZ+M3N1ZPKgQmkXS3ySFZk8kV92GjNlj705icS/UPo6NBdipAbOSOSeUrW
W1W+ZKMW+g3zFgqvrXHPkyFGQUy8dbaNyjeczQCTdOd4KQmu39dE0HNFYs9HbTUm
qKBNiPIrGyo2ZRCWCg31OxyxYBLIsW8RVCSiS60RLkhYb1Q+voOcbl450cPRCzZI
RhGKo2z8MZf29Bd2/xaSwtyHlNl7CmR/92NY+ShM2+LXvKWeHVkIxZZjJQEfjVAv
UWfM57zCjtJhnBojy+FvgFSf1CefL5/twmQ3XxpgW2sO7Pp+Qvp2bANLTAVLupxj
JcTMQ6Yg5sMu20VY6vUPFJlBuUbAvE8Dw9uiVp/AK99Qe8aqsK3gHfyyHSg2T9bI
agaflbf/d06F01CvtrgwF4cpucm0iOyoErkk/IjYAP+SRTTShFNw/HJ0sTSdqJke
b1i3v29uwPy60twZasnM6U3qOyVgN5CraLpzjhTKvIvu0Cc5tI3cshVz6LTCYMq7
8B91a42DBUIDcnVOqaLbZez4sxrOsjjESxwMGJE5/5AHs6ONQhQdX2ooNjgC3jmq
K0Nwltg3gZfuVGlu9+L7/RfFqCDGmroBcAlw2a8Mf2OA623A4hQ=
=gb48
-----END PGP SIGNATURE-----
--Apple-Mail=_B7EE0227-00F7-4374-936C-A68A2934D286--
Home |
Main Index |
Thread Index |
Old Index