transmission: Update to latest git and fix syslog.
[feed/packages.git] / net / transmission / patches / 060-fix-foreground-syslog.patch
1 diff --git a/daemon/daemon.c b/daemon/daemon.c
2 index 7b2a3b425..5b19d105a 100644
3 --- a/daemon/daemon.c
4 +++ b/daemon/daemon.c
5 @@ -715,12 +715,7 @@ static int daemon_start(void* raw_arg, bool foreground)
6 }
7
8 #ifdef HAVE_SYSLOG
9 -
10 - if (!foreground)
11 - {
12 - openlog(MY_NAME, LOG_CONS | LOG_PID, LOG_DAEMON);
13 - }
14 -
15 + openlog(MY_NAME, LOG_CONS | LOG_PID, LOG_DAEMON);
16 #endif
17
18 /* Create new timer event to report daemon status */
19 @@ -772,11 +767,8 @@ cleanup:
20 /* shutdown */
21 #ifdef HAVE_SYSLOG
22
23 - if (!foreground)
24 - {
25 syslog(LOG_INFO, "%s", "Closing session");
26 closelog();
27 - }
28
29 #endif
30