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 /utils | |
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 'utils')
-rw-r--r-- | utils/shd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/utils/shd.c b/utils/shd.c index d2075075..9683f216 100644 --- a/utils/shd.c +++ b/utils/shd.c @@ -249,6 +249,7 @@ main (int argc, char *argv[]) stdin = mach_open_devstream (outp, "r"); stdout = stderr = mach_open_devstream (outp, "w+"); + setlinebuf (stderr); } #endif |