FreeBSD Bugzilla – Attachment 187017 Details for
Bug 222875
[PATCH] net/minidlna: fix ignore on SIGTERM
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch work/minidlna-1.2.0/monitor.c
minidlna.diff (text/plain), 581 bytes, created by
arai.toshihiko
on 2017-10-09 06:02:49 UTC
(
hide
)
Description:
patch work/minidlna-1.2.0/monitor.c
Filename:
MIME Type:
Creator:
arai.toshihiko
Created:
2017-10-09 06:02:49 UTC
Size:
581 bytes
patch
obsolete
>--- monitor.c.orig 2017-10-07 20:01:28.515570000 +0900 >+++ monitor.c 2017-10-09 14:14:11.446922000 +0900 >@@ -846,10 +846,13 @@ > > while( !quitting ) > { >+ int ret; >+ struct timespec timeout = {1, 0}; > struct kevent ke; >- if ( kevent(global_kqueue_handle, NULL, 0, &ke, 1, NULL) == -1 ) >+ if ((ret = kevent(global_kqueue_handle, NULL, 0, &ke, 1, &timeout)) <= 0 ) > { >- DPRINTF(E_WARN, L_INOTIFY, "kevent polling failure: %s\n", strerror(errno)); >+ if (ret == -1) >+ DPRINTF(E_WARN, L_INOTIFY, "kevent polling failure: %s\n", strerror(errno)); > continue; > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 222875
: 187017 |
187155