FreeBSD Bugzilla – Attachment 34590 Details for
Bug 56166
/usr/bin/script exits prematurely if STDIN is closed
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
script.diff
script.diff (text/plain), 384 bytes, created by
Colin Percival
on 2003-08-30 01:30:07 UTC
(
hide
)
Description:
script.diff
Filename:
MIME Type:
Creator:
Colin Percival
Created:
2003-08-30 01:30:07 UTC
Size:
384 bytes
patch
obsolete
>--- usr.bin/script.c.orig Thu Jul 20 11:35:21 2000 >+++ usr.bin/script.c Sat Aug 30 00:58:04 2003 >@@ -170,7 +170,7 @@ > n = select(master + 1, &rfd, 0, 0, tvp); > if (n < 0 && errno != EINTR) > break; >- if (n > 0 && FD_ISSET(STDIN_FILENO, &rfd)) { >+ if (! argv[0] && n > 0 && FD_ISSET(STDIN_FILENO, &rfd)) { > cc = read(STDIN_FILENO, ibuf, BUFSIZ); > if (cc <= 0) > break;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 56166
: 34590