mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
When reading input from a file or device (via -f option) set the
input to be in non-buffering mode so that input lines are logged as they occur rather than being saved up until a buffer's worth of input has been logged.
This commit is contained in:
parent
6aca3a5d0b
commit
4145bb53bf
1 changed files with 1 additions and 0 deletions
|
|
@ -114,6 +114,7 @@ main(int argc, char *argv[])
|
|||
case 'f': /* file to log */
|
||||
if (freopen(optarg, "r", stdin) == NULL)
|
||||
err(1, "%s", optarg);
|
||||
setvbuf(stdin, 0, _IONBF, 0);
|
||||
break;
|
||||
case 'h': /* hostname to deliver to */
|
||||
host = optarg;
|
||||
|
|
|
|||
Loading…
Reference in a new issue