diff options
Diffstat (limited to 'subcmds/forall.py')
-rw-r--r-- | subcmds/forall.py | 3 |
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 | |||
280 | class WorkerKeyboardInterrupt(Exception): | 281 | class 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): | |||
285 | def InitWorker(): | 286 | def InitWorker(): |
286 | signal.signal(signal.SIGINT, signal.SIG_IGN) | 287 | signal.signal(signal.SIGINT, signal.SIG_IGN) |
287 | 288 | ||
289 | |||
288 | def DoWorkWrapper(args): | 290 | def 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 | ||
304 | def DoWork(project, mirror, opt, cmd, shell, cnt, config): | 306 | def 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 = '' |