[git commit] tart_stop_daemon: another fix to disabled OLDER_VERSION_OF_X code

Denys Vlasenko vda.linux at googlemail.com
Fri Apr 13 23:29:01 UTC 2018


commit: https://git.busybox.net/busybox/commit/?id=c783cf78af04e898a20f69f28b885f7c0285020c
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/master

Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 debianutils/start_stop_daemon.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/debianutils/start_stop_daemon.c b/debianutils/start_stop_daemon.c
index 9fa092d66..43b6fca26 100644
--- a/debianutils/start_stop_daemon.c
+++ b/debianutils/start_stop_daemon.c
@@ -192,8 +192,7 @@ static int pid_is_exec(pid_t pid)
 		return 1;
 	return 0;
 }
-#endif
-
+#else
 static int pid_is_exec(pid_t pid)
 {
 	ssize_t bytes;
@@ -217,6 +216,7 @@ static int pid_is_exec(pid_t pid)
 	}
 	return 0;
 }
+#endif
 
 static int pid_is_name(pid_t pid)
 {


More information about the busybox-cvs mailing list