aboutsummaryrefslogtreecommitdiff
path: root/startup
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2024-08-25 23:52:28 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2024-08-25 23:54:47 +0200
commit3ff08d46d98ad72dbcb3a17a0c73afb84f950543 (patch)
tree40f7050c601ec015646c1ea491afa47dfed9d002 /startup
parent90b2060cc2a0c18dd48879c347cefda486f5a017 (diff)
downloadhurd-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 'startup')
-rw-r--r--startup/startup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/startup/startup.c b/startup/startup.c
index 5666efc6..34186986 100644
--- a/startup/startup.c
+++ b/startup/startup.c
@@ -770,7 +770,7 @@ main (int argc, char **argv, char **envp)
stdin = mach_open_devstream (consdev, "r");
if (stdout == NULL || stdin == NULL)
crash_mach ();
- setbuf (stdout, NULL);
+ setlinebuf (stderr);
err = wire_task_self ();
if (err)