[orca/gnome-3-6] Use for() instead of map() in cleanup()
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca/gnome-3-6] Use for() instead of map() in cleanup()
- Date: Tue, 23 Oct 2012 03:31:45 +0000 (UTC)
commit 12baf4fadb5e31ea1d2e4e15b7cf5f7960c0239a
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Sun Oct 21 16:11:42 2012 +0000
Use for() instead of map() in cleanup()
src/orca/orca_bin.py.in | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/orca/orca_bin.py.in b/src/orca/orca_bin.py.in
index e66f2f6..ce046ab 100644
--- a/src/orca/orca_bin.py.in
+++ b/src/orca/orca_bin.py.in
@@ -268,9 +268,11 @@ def cleanup(sigval):
orcasToKill = otherOrcas()
debug.println(
debug.LEVEL_INFO, "INFO: Timeout cleaning up: %s" % orcasToKill)
- map(lambda x: os.kill(x, signal.SIGKILL), orcasToKill)
+ for pid in orcasToKill:
+ os.kill(pid, signal.SIGKILL)
- map(lambda x: os.kill(x, sigval), orcasToKill)
+ for pid in orcasToKill:
+ os.kill(pid, sigval)
signal.signal(signal.SIGALRM, onTimeout)
signal.alarm(2)
while otherOrcas():
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]