Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.5:Update
spice-vdagent.17026
vdagentd-init-static-uinput-before-fork.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File vdagentd-init-static-uinput-before-fork.patch of Package spice-vdagent.17026
From b3466ccd9efcd7e36ed9289005fa7727179d748c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Jank=C5=AF?= <jjanku@redhat.com> Date: Fri, 20 Mar 2020 17:18:32 +0100 Subject: [PATCH 07/20] vdagentd: init static uinput before fork MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Git-commit: 7b0435ef66af088c1a1be20b6bc6b0fcb76e4e1a References: bsc#1173749 Otherwise the caller doesn't know that the init failed because we're returning 0 in the parent and 1 in child. Signed-off-by: Jakub Janků <jjanku@redhat.com> Acked-by: Frediano Ziglio <fziglio@redhat.com> Signed-off-by: Bruce Rogers <brogers@suse.com> --- src/vdagentd/vdagentd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/vdagentd/vdagentd.c b/src/vdagentd/vdagentd.c index 8bf5318..d5f7be2 100644 --- a/src/vdagentd/vdagentd.c +++ b/src/vdagentd/vdagentd.c @@ -1185,9 +1185,6 @@ int main(int argc, char *argv[]) } } - if (do_daemonize) - daemonize(); - #ifdef WITH_STATIC_UINPUT uinput = vdagentd_uinput_create(uinput_device, 1024, 768, NULL, 0, debug > 1, uinput_fake); @@ -1197,6 +1194,9 @@ int main(int argc, char *argv[]) } #endif + if (do_daemonize) + daemonize(); + g_unix_signal_add(SIGINT, signal_handler, NULL); g_unix_signal_add(SIGHUP, signal_handler, NULL); g_unix_signal_add(SIGTERM, signal_handler, NULL); -- 2.29.0
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor