diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2024-08-25 23:52:28 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2024-08-25 23:54:47 +0200 |
commit | 3ff08d46d98ad72dbcb3a17a0c73afb84f950543 (patch) | |
tree | 40f7050c601ec015646c1ea491afa47dfed9d002 /exec | |
parent | 90b2060cc2a0c18dd48879c347cefda486f5a017 (diff) | |
download | hurd-3ff08d46d98ad72dbcb3a17a0c73afb84f950543.tar.gz hurd-3ff08d46d98ad72dbcb3a17a0c73afb84f950543.tar.bz2 hurd-3ff08d46d98ad72dbcb3a17a0c73afb84f950543.zip |
Fix line-buffered stderr
mach_open_devstream creates a fully-buffered stream by default.
This prevents from seeing various messages.
Diffstat (limited to 'exec')
-rw-r--r-- | exec/main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/exec/main.c b/exec/main.c index 9021e45c..57bfd137 100644 --- a/exec/main.c +++ b/exec/main.c @@ -187,6 +187,7 @@ open_console (mach_port_t device_master) stdin = mach_open_devstream (cons, "r"); stdout = stderr = mach_open_devstream (cons, "w"); + setlinebuf (stderr); got_console = 1; mach_port_deallocate (mach_task_self (), cons); |