mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 01:30:30 -04:00
daemon: Disable stdio buffering.
The daemon utility already does its own buffering and retransmits its child's output line by line. There's no need for stdio to add its own buffering on top of this. MFC after: 1 week Sponsored by: Modirum MDPay Reviewed by: allanjude Differential Revision: https://reviews.freebsd.org/D42111
This commit is contained in:
parent
c5e5722220
commit
cec8e6ba64
1 changed files with 1 additions and 0 deletions
|
|
@ -420,6 +420,7 @@ daemon_eventloop(struct daemon_state *state)
|
|||
close(state->pipe_fd[1]);
|
||||
state->pipe_fd[1] = -1;
|
||||
setproctitle("%s[%d]", state->title, (int)state->pid);
|
||||
setbuf(stdout, NULL);
|
||||
|
||||
while (state->mode != MODE_NOCHILD) {
|
||||
ret = kevent(kq, NULL, 0, &event, 1, NULL);
|
||||
|
|
|
|||
Loading…
Reference in a new issue