Skip to content

Conversation

@skuhl
Copy link
Contributor

@skuhl skuhl commented Mar 9, 2021

Open the pidfile for writing prior to forking so that the exit code can properly indicate to the user that there was a problem. No error messages are printed to the console in this case because when --daemon implies --syslog. So, the syslog will contain the message indicating that the pidfile wasn't writeable.

Fixes bug #598.

Here, we try to open the pidfile for writing prior to forking so that
the exit code can properly indicate to the user that there was a
problem. No error messages are printed to the console in this case
because when --daemon implies --syslog. So, the syslog will contain
the message indicating that the pidfile wasn't writeable.

Fixes bug sshuttle#598.
@brianmay brianmay merged commit d6d11b2 into sshuttle:master Mar 9, 2021
@skuhl skuhl deleted the fix-pidfile-error branch March 9, 2021 21:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants