From 2e95e3a33bcb34aeec66551503c692c1cb80ab61 Mon Sep 17 00:00:00 2001 From: Nicolas Schodet Date: Mon, 9 Feb 2009 20:05:30 +0100 Subject: * all python: - changed tabs to spaces. --- host/utils/forked.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'host/utils') diff --git a/host/utils/forked.py b/host/utils/forked.py index 9e72d7d3..5185034a 100644 --- a/host/utils/forked.py +++ b/host/utils/forked.py @@ -35,14 +35,14 @@ class Forked: """ def __init__ (self, function): - """Initialise, fork, and call the given function in the children - process.""" - self.pid = os.fork () - if self.pid == 0: - function () - sys.exit (0) + """Initialise, fork, and call the given function in the children + process.""" + self.pid = os.fork () + if self.pid == 0: + function () + sys.exit (0) def kill (self): - """Kill the forked function.""" - os.kill (self.pid, signal.SIGTERM) - os.waitpid (self.pid, 0) + """Kill the forked function.""" + os.kill (self.pid, signal.SIGTERM) + os.waitpid (self.pid, 0) -- cgit v1.2.3