So that it does not just return on non-handled OSes.
+2008-03-15 Erast Benson <erast@gnusolaris.org>
+
+ * utils/start-stop-daemon.c (check): Move 'return' inside preprocessor
+ conditionals, so that it does not just return on non-handled OSes.
+
2008-03-15 Erast Benson <erast@gnusolaris.org>
* utils/start-stop-daemon.c: Use __sun instead of __sparc__ to
{
#if defined(OSLinux) || defined(OShpux)
if (execname && !pid_is_exec(pid, &exec_stat))
+ return;
#elif defined(OSHURD) || defined(OSFreeBSD) || defined(OSNetBSD)
/* Let's try this to see if it works */
if (execname && !pid_is_cmd(pid, execname))
-#endif
return;
+#endif
if (userspec && !pid_is_user(pid, user_id))
return;
if (cmdname && !pid_is_cmd(pid, cmdname))