From d9c55e9192e8fbd5c84b6a7bfbf28ed88e119717 Mon Sep 17 00:00:00 2001
From: Pierre-Yves Chibon <pingou@pingoured.fr>
Date: Wed, 1 Aug 2012 22:30:12 +0200
Subject: [PATCH] Let allow the signal.SIGTERM to fail
If os.kill(pid, signal.SIGTERM) fails, currently guake fails as well
we should allow this command to fail withouth throwing an
exception.
---
src/guake | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/src/guake b/src/guake
index 6d8f9c5..72ea56e 100644
a
|
b
|
class Guake(SimpleGladeApp): |
1259 | 1259 | call this in another thread. This doesn't change any thing in |
1260 | 1260 | UI, so you can use python's start_new_thread. |
1261 | 1261 | """ |
1262 | | os.kill(pid, signal.SIGTERM) |
| 1262 | try: |
| 1263 | os.kill(pid, signal.SIGTERM) |
| 1264 | except OSError: |
| 1265 | pass |
1263 | 1266 | num_tries = 30 |
1264 | 1267 | |
1265 | 1268 | while num_tries > 0: |