| Summary: | /usr/bin/script exits prematurely if STDIN is closed | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Base System | Reporter: | Colin Percival <cperciva> | ||||
| Component: | bin | Assignee: | Colin Percival <cperciva> | ||||
| Status: | Closed FIXED | ||||||
| Severity: | Affects Only Me | ||||||
| Priority: | Normal | ||||||
| Version: | Unspecified | ||||||
| Hardware: | Any | ||||||
| OS: | Any | ||||||
| Attachments: |
|
||||||
|
Description
Colin Percival
2003-08-30 01:30:07 UTC
See also bin/57414. Colin Percival Improved patch:
--- script.diff begins here ---
--- script.c.orig Thu Jul 20 11:35:21 2000
+++ script.c Thu Oct 16 20:25:20 2003
@@ -162,7 +162,8 @@
FD_ZERO(&rfd);
for (;;) {
FD_SET(master, &rfd);
- FD_SET(STDIN_FILENO, &rfd);
+ if (argv[0] == NULL)
+ FD_SET(STDIN_FILENO, &rfd);
if (flushtime > 0) {
tv.tv_sec = flushtime;
tv.tv_usec = 0;
--- script.diff ends here ---
State Changed From-To: open->patched Fixed in -current, will MFC in 7 days. Claim ownership to remind myself to close this later. Responsible Changed From-To: freebsd-bugs->cperciva Fixed in -current, will MFC in 7 days. Claim ownership to remind myself to close this later. State Changed From-To: patched->closed MFC to RELENG_4 is done. |