FreeBSD Bugzilla – Attachment 187155 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]
work/minidlna-1.2.0/monitor.c version2
minidlna.diff2 (text/plain), 694 bytes, created by
arai.toshihiko
on 2017-10-14 04:12:17 UTC
(
hide
)
Description:
work/minidlna-1.2.0/monitor.c version2
Filename:
MIME Type:
Creator:
arai.toshihiko
Created:
2017-10-14 04:12:17 UTC
Size:
694 bytes
patch
obsolete
>--- monitor.c.orig 2017-10-14 12:47:44.253536000 +0900 >+++ monitor.c 2017-10-14 12:49:52.294917000 +0900 >@@ -846,10 +846,18 @@ > > 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)); >+ if( next_pl_fill && (time(NULL) >= next_pl_fill) ) >+ { >+ fill_playlists(); >+ next_pl_fill = 0; >+ } > 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