Files
systemd/src/udev
Allison Karlitskaya 516df12af9 udevadm: flush output after each monitor event
If you're using `udevadm monitor` from a script, without a tty, then
libc defaults to being fully-buffered, and won't flush stdout after
newlines.  This is fine for tools that dump a bunch of data and then
exit immediately.  It's a problem for tools like `udevadm monitor` which
have long pauses: the buffered data can get stuck in the buffer for an
unbounded amount of time.

In the Cockpit project we've been working around this for some time with
`stdbuf` which is a `LD_PRELOAD` hack to change the libc buffering
behaviour, but we'd like to stop doing that.

Let's make sure we flush the buffer after each event.
2025-10-28 17:51:19 +01:00
..
2025-07-24 10:42:50 +02:00
2025-05-21 23:57:31 +09:00
2025-05-21 23:57:31 +09:00
2025-05-21 23:57:31 +09:00
2025-07-24 10:42:50 +02:00
2025-09-26 11:12:04 +02:00
2025-05-21 23:57:31 +09:00
2025-05-21 23:57:31 +09:00
2025-05-21 23:57:31 +09:00
2025-05-21 23:57:31 +09:00
2025-05-21 23:57:31 +09:00
2025-05-21 23:57:31 +09:00
2025-05-21 23:57:31 +09:00
2025-05-21 23:57:31 +09:00
2025-05-21 23:57:31 +09:00
2025-05-21 23:57:31 +09:00
2025-05-21 23:57:31 +09:00
2025-05-21 23:57:31 +09:00
2025-05-21 23:57:31 +09:00
2025-05-21 23:57:31 +09:00
2025-05-21 23:57:31 +09:00
2025-05-21 23:57:31 +09:00
2025-08-26 06:00:03 +09:00
2025-05-21 23:57:31 +09:00
2025-05-21 23:57:31 +09:00
2025-05-21 23:57:31 +09:00
2025-05-21 23:57:31 +09:00
2025-05-21 23:57:31 +09:00
2025-05-21 23:57:31 +09:00
2025-05-21 23:57:31 +09:00
2025-05-21 23:57:31 +09:00
2025-05-21 23:57:31 +09:00
2025-07-11 22:07:41 +09:00
2025-05-21 23:57:31 +09:00
2025-05-21 23:57:31 +09:00
2025-05-21 23:57:31 +09:00