Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#57 closed bug (fixed)

No terminal output after a redirect

Reported by: mmlr Owned by: axeld
Priority: normal Milestone: R1
Component: System/Kernel Version:
Keywords: Cc:
Blocked By: Blocking:
Has a Patch: no Platform: All


After redirecting some command to a file ("echo hello > hello.txt") the stdout is appearantly not restored correctly and following commands don't print their output to the terminal anymore. Tested with both terminals (Haiku Terminal and MiniTerminal).

Change History (4)

comment:1 Changed 14 years ago by axeld

Resolution: fixed

comment:2 Changed 14 years ago by axeld

Status: newclosed

comment:3 Changed 14 years ago by axeld

hrev14313 fixes this; our F_DUPFD, dup(), and dup2() calls didn't clear the close-on-exec flag as required by POSIX.

comment:4 Changed 14 years ago by korli

Tested OK (only reproduced with bash builtins commands though)

Note: See TracTickets for help on using tickets.