Make autounmountd(8) not die when traced with "truss -p".

MFC after:	1 month
This commit is contained in:
Edward Tomasz Napierala 2016-11-02 08:12:37 +00:00
parent 30c90f019f
commit 8379360aeb

View File

@ -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");