| Summary: | tail -F <file> misbehaves with stdin closed | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Base System | Reporter: | Timo Buhrmester <fstd.lkml> | ||||
| Component: | bin | Assignee: | Fernando ApesteguĂa <fernape> | ||||
| Status: | Closed FIXED | ||||||
| Severity: | Affects Some People | CC: | fernape | ||||
| Priority: | --- | Keywords: | patch | ||||
| Version: | 10.1-RELEASE | ||||||
| Hardware: | Any | ||||||
| OS: | Any | ||||||
| Attachments: |
|
||||||
|
Description
Timo Buhrmester
2015-10-09 18:35:33 UTC
The patch does not look wrong, but I doubt we want to support running standard utilities with fd 0, 1 or 2 closed. For daemonizing, the file descriptors should be reopened from/to /dev/null, not closed. Seems to work fine now: Terminal 1: $ sudo tail -F /tmp/foo <&- Password: foo bar Terminal 2 $ sudo echo foo >>/tmp/foo Password: $ sudo rm /tmp/foo $ sudo echo bar >>/tmp/foo Please reopen if I misunderstood the test case. |