Skip to content

Commit

Permalink
Add extra linefeed to wall message to ensure it's seen.
Browse files Browse the repository at this point in the history
Signed-off-by: Joachim Wiberg <[email protected]>
  • Loading branch information
troglobit committed Jul 21, 2024
1 parent 28a1fb3 commit 14a4eb9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/syslogd.c
Original file line number Diff line number Diff line change
Expand Up @@ -2079,7 +2079,9 @@ void fprintlog_write(struct filed *f, struct iovec *iov, int iovcnt, int flags)
f->f_time = timer_now();
logit("\n");
pushiov(iov, iovcnt, "\r\n");
wallmsg(f, &iov[0], iovcnt);
/* Make sure it's seen, may be followed by reboot */
pushiov(iov, iovcnt, "\r\n");
wallmsg(f, iov, iovcnt);
break;
} /* switch */

Expand Down

0 comments on commit 14a4eb9

Please sign in to comment.