summaryrefslogtreecommitdiffstats
path: root/subcmds/forall.py
diff options
context:
space:
mode:
Diffstat (limited to 'subcmds/forall.py')
-rw-r--r--subcmds/forall.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/subcmds/forall.py b/subcmds/forall.py
index 5d2be91f..dbf26f0b 100644
--- a/subcmds/forall.py
+++ b/subcmds/forall.py
@@ -277,6 +277,7 @@ without iterating through the remaining projects.
277 return 277 return
278 yield [mirror, opt, cmd, shell, cnt, config, project] 278 yield [mirror, opt, cmd, shell, cnt, config, project]
279 279
280
280class WorkerKeyboardInterrupt(Exception): 281class WorkerKeyboardInterrupt(Exception):
281 """ Keyboard interrupt exception for worker processes. """ 282 """ Keyboard interrupt exception for worker processes. """
282 pass 283 pass
@@ -285,6 +286,7 @@ class WorkerKeyboardInterrupt(Exception):
285def InitWorker(): 286def InitWorker():
286 signal.signal(signal.SIGINT, signal.SIG_IGN) 287 signal.signal(signal.SIGINT, signal.SIG_IGN)
287 288
289
288def DoWorkWrapper(args): 290def DoWorkWrapper(args):
289 """ A wrapper around the DoWork() method. 291 """ A wrapper around the DoWork() method.
290 292
@@ -303,6 +305,7 @@ def DoWorkWrapper(args):
303 305
304def DoWork(project, mirror, opt, cmd, shell, cnt, config): 306def DoWork(project, mirror, opt, cmd, shell, cnt, config):
305 env = os.environ.copy() 307 env = os.environ.copy()
308
306 def setenv(name, val): 309 def setenv(name, val):
307 if val is None: 310 if val is None:
308 val = '' 311 val = ''