summaryrefslogtreecommitdiffstats
path: root/usr.sbin/autofs
diff options
context:
space:
mode:
authortrasz <trasz@FreeBSD.org>2016-12-03 19:55:55 +0000
committertrasz <trasz@FreeBSD.org>2016-12-03 19:55:55 +0000
commit3fa9755741266bffba869b3c626e6e6de91d6bc7 (patch)
treeb45c4ed11454ff01b23958467cf3e010d1e250f5 /usr.sbin/autofs
parent775650a0d7873d344033a18597bcf2a9254cc684 (diff)
downloadFreeBSD-src-3fa9755741266bffba869b3c626e6e6de91d6bc7.zip
FreeBSD-src-3fa9755741266bffba869b3c626e6e6de91d6bc7.tar.gz
MFC r308206:
Make autounmountd(8) not die when traced with "truss -p".
Diffstat (limited to 'usr.sbin/autofs')
-rw-r--r--usr.sbin/autofs/autounmountd.c5
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");
OpenPOWER on IntegriCloud