SCCS-vsn: sbin/mount/mount.c 8.15
#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>
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);
}