Make autounmountd(8) not die when traced with "truss -p".
MFC after: 1 month
This commit is contained in:
parent
30c90f019f
commit
8379360aeb
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user