aboutsummaryrefslogtreecommitdiff
path: root/libdiskfs
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 /libdiskfs
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 'libdiskfs')
-rw-r--r--libdiskfs/console.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libdiskfs/console.c b/libdiskfs/console.c
index cd93f025..9bf7cd2d 100644
--- a/libdiskfs/console.c
+++ b/libdiskfs/console.c
@@ -76,6 +76,7 @@ diskfs_console_stdio (void)
stdin = mach_open_devstream (cons, "r");
stdout = stderr = mach_open_devstream (cons, "w");
mach_port_deallocate (mach_task_self (), cons);
+ setlinebuf (stderr);
}
/* And make sure we don't die just because we got some error there. */