Switch writing of PID file to new reporting style
Currently, the writing of the PID file uses a "standard" error reporting: catch exception, transform it into a 'Result' type, leave handling of that to the caller. However, for daemon startup, we actually want exceptions to be propagated up until the handler which will write the details to the pipe. This patch removes the writePidFile wrapper (and stops exporting it), and changes the code to simply annotate better the I/O error. Signed-off-by:Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
Loading
Please register or sign in to comment