Conversation
Quit if systemd doesn't pass a valid socket, and no -s parameter given. Otherwise fcgiwrap may try listening on stdin, with bad results.
|
Sorry, but this does not seem to behave as you describe in your comment here. This will return whenever the -s flag is not passed. How are services expected to check that libsystemd is not buggy? |
|
You are right, it returns if Blindly listening on stdin is wrong in any case, at least if fcgiwrap was started from a systemd service. |
|
|
|
I agree it isn't beautiful, but that's the existing code. I was trying to keep the patch small and non-intrusive. @CameronNemo, do you have a suggestion for improvement? |
Quit if systemd doesn't pass a valid socket, and no -s parameter
given. Otherwise fcgiwrap may try listening on stdin, with
bad results.
Basically, it loops endlessly printing error messages like this: