From 1c4423c5cf25581d86b6ac133c321eb78a0c7910 Mon Sep 17 00:00:00 2001 From: Seungbae Shin Date: Tue, 19 Feb 2019 18:54:30 +0900 Subject: [PATCH] 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 --- packaging/pulseaudio.spec | 2 +- src/daemon/main.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) 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); -- 2.7.4