diff options
author | Edward Tomasz Napierala <trasz@FreeBSD.org> | 2016-11-02 08:12:37 +0000 |
---|---|---|
committer | Edward Tomasz Napierala <trasz@FreeBSD.org> | 2016-11-02 08:12:37 +0000 |
commit | 8379360aeba6a671687dcb3fceed043f8f1cb588 (patch) | |
tree | 2107e93bcef334a91e46fb6e8ce3dd100aee0fd9 /usr.sbin/autofs | |
parent | 30c90f019fae2636046f3789dab92794a138d19a (diff) | |
download | src-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')
-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 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"); |