mirror of
https://github.com/opnsense/src.git
synced 2026-06-13 18:50:31 -04:00
Make autounmountd(8) not die when traced with "truss -p".
MFC after: 1 month
This commit is contained in:
parent
30c90f019f
commit
8379360aeb
1 changed files with 4 additions and 1 deletions
|
|
@ -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 a new issue