Projects
Kolab:3.4:Updates
bonnie
0001-Fork-the-dealer-process-to-the-background-...
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0001-Fork-the-dealer-process-to-the-background-at-the-ear.patch of Package bonnie (Revision 30)
Currently displaying revision
30
,
Show latest
From cc0262ef87f6ea84a763ab6d020dd8b8e312018e Mon Sep 17 00:00:00 2001 From: "Jeroen van Meeuwen (Kolab Systems)" <vanmeeuwen@kolabsys.com> Date: Fri, 21 Nov 2014 22:37:31 +0100 Subject: [PATCH 1/2] Fork the dealer process to the background at the earliest opportunity --- dealer.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/dealer.py b/dealer.py index a02771d..1492fa9 100755 --- a/dealer.py +++ b/dealer.py @@ -1,6 +1,7 @@ #!/usr/bin/python import json +import os import sys from bonnie.dealer import BonnieDealer @@ -8,5 +9,8 @@ from bonnie.dealer import BonnieDealer if __name__ == "__main__": notification = sys.stdin.read().strip() - dealer = BonnieDealer() - dealer.run(notification) + newpid = os.fork() + + if newpid == 0: + dealer = BonnieDealer() + dealer.run(notification) -- 1.9.3
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.