pid > 0 && pid != -1 becomes pid > 0
[unix-history] / usr / src / sbin / mount / mount.c
index 6a310d7..e9b65e6 100644 (file)
@@ -12,7 +12,7 @@ static char copyright[] =
 #endif /* not lint */
 
 #ifndef lint
 #endif /* not lint */
 
 #ifndef lint
-static char sccsid[] = "@(#)mount.c    8.14 (Berkeley) %G%";
+static char sccsid[] = "@(#)mount.c    8.15 (Berkeley) %G%";
 #endif /* not lint */
 
 #include <sys/param.h>
 #endif /* not lint */
 
 #include <sys/param.h>
@@ -214,7 +214,7 @@ main(argc, argv)
        if (rval == 0 && getuid() == 0 &&
            (mountdfp = fopen(_PATH_MOUNTDPID, "r")) != NULL) {
                if (fscanf(mountdfp, "%ld", &pid) == 1 &&
        if (rval == 0 && getuid() == 0 &&
            (mountdfp = fopen(_PATH_MOUNTDPID, "r")) != NULL) {
                if (fscanf(mountdfp, "%ld", &pid) == 1 &&
-                   pid > 0 && pid != -1 && kill(pid, SIGHUP))
+                   pid > 0 && kill(pid, SIGHUP))
                        err(1, "signal mountd");
                (void)fclose(mountdfp);
        }
                        err(1, "signal mountd");
                (void)fclose(mountdfp);
        }