On 1/4/21 2:02 AM, Cameron MacPherson wrote: > #define oprintf(...) \ ({ \ char *msg_oprintf; \ > fprintf(outfifo,__VA_ARGS__); \ > fflush(outfifo); \ msg_oprintf = > xasprintf(__VA_ARGS__); \ log("OUT: %s\n", > msg_oprintf); \ free(msg_oprintf); \ }) > > i would add fsync(fileno(outfifo)) after fflush(outfifo) otherwise its not > guaranteed that anything actually gets written to the file which is a fifo > so if something (the client?) is reading that fifo it will block until the > fsync happens. if glibc used to fsync on fflush and doesnt any longer (its > not required to) i imagine this could cause the problem.
OK, I'll try that tomorrow. Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaub...@debian.org `. `' Freie Universitaet Berlin - glaub...@physik.fu-berlin.de `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913