Skip to content
Commit 0e557eef authored by Sergey Bugaev's avatar Sergey Bugaev
Browse files

log: protect errno in log_open()

Commit 0b1f3c76 has introduced log_open()
calls after exec fails post-fork. However, the log_open() call itself could
change the value of errno, which, for me, manifested in:

$ coredumpctl gdb
...
Failed to invoke gdb: Success

Fix this by using PROTECT_ERRNO in log_open().
parent dcb6061e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment