Commit 51ba6124 authored by Donald Johnson's avatar Donald Johnson Committed by Anthony G. Basile

Add line buffering to udevadm monitor output

Signed-off-by: 's avatarAnthony G. Basile <>
parent 6f630d32
......@@ -156,6 +156,9 @@ static int adm_monitor(struct udev *udev, int argc, char *argv[]) {
sigaddset(&mask, SIGTERM);
sigprocmask(SIG_UNBLOCK, &mask, NULL);
/* output each event as it happens via line buffering */
fd_ep = epoll_create1(EPOLL_CLOEXEC);
if (fd_ep < 0) {
log_error_errno(errno, "error creating epoll fd: %m");
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment