aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/autofs/autounmountd.c
diff options
context:
space:
mode:
authorEdward Tomasz Napierala <trasz@FreeBSD.org>2016-11-02 08:12:37 +0000
committerEdward Tomasz Napierala <trasz@FreeBSD.org>2016-11-02 08:12:37 +0000
commit8379360aeba6a671687dcb3fceed043f8f1cb588 (patch)
tree2107e93bcef334a91e46fb6e8ce3dd100aee0fd9 /usr.sbin/autofs/autounmountd.c
parent30c90f019fae2636046f3789dab92794a138d19a (diff)
downloadsrc-8379360aeba6a671687dcb3fceed043f8f1cb588.tar.gz
src-8379360aeba6a671687dcb3fceed043f8f1cb588.zip
Make autounmountd(8) not die when traced with "truss -p".
MFC after: 1 month
Notes
Notes: svn path=/head/; revision=308206
Diffstat (limited to 'usr.sbin/autofs/autounmountd.c')
-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 3a13225aa80a..f65e78a81067 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");