Commit 1e095765 authored by Alessandro Rubini's avatar Alessandro Rubini

arch-gnu-linux: force stdout to be unbuffered

IN this way users can tee the messages to a file and avoid the
4k-at-a-time bursts.
Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <>
parent 3da97b8d
......@@ -6,6 +6,7 @@
* This is the startup thing for hosted environments. It
* defines main and then calls the main loop.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
......@@ -21,6 +22,7 @@ int main(int argc, char **argv)
struct pp_instance *ppi;
char *ifname;
setbuf(stdout, NULL);
* Here, we may fork or whatever for each interface.
* To keep things simple, just run one thing for one interface.
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