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 /libmachdev | |
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 'libmachdev')
-rw-r--r-- | libmachdev/trivfs_server.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libmachdev/trivfs_server.c b/libmachdev/trivfs_server.c index 4ce1ed36..e228bf40 100644 --- a/libmachdev/trivfs_server.c +++ b/libmachdev/trivfs_server.c @@ -399,6 +399,7 @@ resume_bootstrap_server(mach_port_t server_task, const char *server_name) stdin = mach_open_devstream (cons, "r"); stdout = stderr = mach_open_devstream (cons, "w"); mach_port_deallocate (mach_task_self (), cons); + setlinebuf (stderr); printf ("%s ", server_name); fflush (stdout); |