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 /mach-defpager | |
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 'mach-defpager')
-rw-r--r-- | mach-defpager/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mach-defpager/main.c b/mach-defpager/main.c index 8fbe2adc..27865eea 100644 --- a/mach-defpager/main.c +++ b/mach-defpager/main.c @@ -69,7 +69,7 @@ printf_init (device_t master) stdin = mach_open_devstream (cons, "r"); stdout = stderr = mach_open_devstream (cons, "w"); mach_port_deallocate (mach_task_self (), cons); - setbuf (stdout, 0); + setlinebuf (stderr); } |