Disable stdout buffering

This commit is contained in:
Radon Rosborough 2021-08-09 20:55:48 -07:00
parent 389d8d0ad6
commit b6cf05e16c
1 changed files with 2 additions and 0 deletions

View File

@ -258,6 +258,8 @@ void session(char *uuid, char *lang, char *imageHash)
void exec(char *uuid, int argc, char **cmdline, bool pty)
{
if (setvbuf(stdout, NULL, _IONBF, 0) != 0)
die("setvbuf failed");
char *share, *ctlFIFO, *inputFIFO, *outputFIFO, *ctlCmd, *dataFIFO;
if (asprintf(&share, "/var/run/riju/shares/%s", uuid) < 0)
die("asprintf failed");