From: Kirk McKusick Date: Wed, 20 Apr 1994 14:48:38 +0000 (-0800) Subject: do not complain if mountd is not found X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/commitdiff_plain/d7749b89c472c52c9475d8e8a36134ec62bd305b do not complain if mountd is not found SCCS-vsn: sbin/mount/mount.c 8.19 --- diff --git a/usr/src/sbin/mount/mount.c b/usr/src/sbin/mount/mount.c index df0a2a6629..a8a5b791f9 100644 --- a/usr/src/sbin/mount/mount.c +++ b/usr/src/sbin/mount/mount.c @@ -12,7 +12,7 @@ static char copyright[] = #endif /* not lint */ #ifndef lint -static char sccsid[] = "@(#)mount.c 8.18 (Berkeley) %G%"; +static char sccsid[] = "@(#)mount.c 8.19 (Berkeley) %G%"; #endif /* not lint */ #include @@ -206,7 +206,7 @@ main(argc, argv) if (rval == 0 && getuid() == 0 && (mountdfp = fopen(_PATH_MOUNTDPID, "r")) != NULL) { if (fscanf(mountdfp, "%ld", &pid) == 1 && - pid > 0 && kill(pid, SIGHUP)) + pid > 0 && kill(pid, SIGHUP) == -1 && errno != ESRCH) err(1, "signal mountd"); (void)fclose(mountdfp); }