forked from pool/openssh
f948d6768b
- When not daemonizing, such is used with systemd, no not create a PID file OBS-URL: https://build.opensuse.org/request/show/130946 OBS-URL: https://build.opensuse.org/package/show/network/openssh?expand=0&rev=35
12 lines
313 B
Diff
12 lines
313 B
Diff
--- sshd.c.orig
|
|
+++ sshd.c
|
|
@@ -1812,7 +1812,7 @@ main(int ac, char **av)
|
|
* Write out the pid file after the sigterm handler
|
|
* is setup and the listen sockets are bound
|
|
*/
|
|
- if (!debug_flag) {
|
|
+ if (!debug_flag || !no_daemon_flag) {
|
|
FILE *f = fopen(options.pid_file, "w");
|
|
|
|
if (f == NULL) {
|