Skip to content

Flush output stream for notifications

Stefano babic requested to merge github/fork/joerg-krause/sbabic into master

Created by: joerg-krause

fprintf() does buffered I/O. Without flushing the stdout stream a parent process (in my example a Node.js application) using swupdate as a child will not receive a notification until the buffer is full or swupdate exits.

My editor automatically removed a trailing whitespace.

Merge request reports