diff options
author | trasz <trasz@FreeBSD.org> | 2016-12-03 19:55:55 +0000 |
---|---|---|
committer | trasz <trasz@FreeBSD.org> | 2016-12-03 19:55:55 +0000 |
commit | 3fa9755741266bffba869b3c626e6e6de91d6bc7 (patch) | |
tree | b45c4ed11454ff01b23958467cf3e010d1e250f5 | |
parent | 775650a0d7873d344033a18597bcf2a9254cc684 (diff) | |
download | FreeBSD-src-3fa9755741266bffba869b3c626e6e6de91d6bc7.zip FreeBSD-src-3fa9755741266bffba869b3c626e6e6de91d6bc7.tar.gz |
MFC r308206:
Make autounmountd(8) not die when traced with "truss -p".
-rw-r--r-- | usr.sbin/autofs/autounmountd.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/autofs/autounmountd.c b/usr.sbin/autofs/autounmountd.c index b85f3ca..90b8302 100644 --- a/usr.sbin/autofs/autounmountd.c +++ b/usr.sbin/autofs/autounmountd.c @@ -244,8 +244,11 @@ do_wait(int kq, double sleep_time) log_debugx("waiting for filesystem event"); nevents = kevent(kq, NULL, 0, &unused, 1, NULL); } - if (nevents < 0) + if (nevents < 0) { + if (errno == EINTR) + return; log_err(1, "kevent"); + } if (nevents == 0) { log_debugx("timeout reached"); |