From: Seungbae Shin Date: Tue, 19 Feb 2019 09:54:30 +0000 (+0900) Subject: Skip closing opened fds when dlog feature is enabled. X-Git-Tag: accepted/tizen/unified/20190320.082257~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1c4423c5cf25581d86b6ac133c321eb78a0c7910;p=platform%2Fupstream%2Fpulseaudio.git Skip closing opened fds when dlog feature is enabled. As libdlog opens fds at constructors, they should not be closed by daemon startup. [Version] 11.1-62 [Issue Type] External optimization Change-Id: Ia27512b7def01db7cd95ee3809ef320308d5819c --- diff --git a/packaging/pulseaudio.spec b/packaging/pulseaudio.spec index beaaa72..60ae9b3 100644 --- a/packaging/pulseaudio.spec +++ b/packaging/pulseaudio.spec @@ -3,7 +3,7 @@ Name: pulseaudio Summary: Improved Linux sound server Version: 11.1 -Release: 61 +Release: 62 Group: Multimedia/Audio License: LGPL-2.1 URL: http://pulseaudio.org diff --git a/src/daemon/main.c b/src/daemon/main.c index a69316a..6902f3e 100644 --- a/src/daemon/main.c +++ b/src/daemon/main.c @@ -504,7 +504,10 @@ int main(int argc, char *argv[]) { pa_reset_personality(); pa_drop_root(); +#ifndef TIZEN_DLOG + /* As libdlog opens fds at construtors, so skip closing fds at startup */ pa_close_allv(passed_fds); +#endif pa_xfree(passed_fds); pa_reset_sigs(-1); pa_unblock_sigs(-1);