source: projects/specs/trunk/g/guake/0001-Let-allow-the-signal.SIGTERM-to-fail.patch @ 8096

Revision 8096, 921 bytes checked in by iwaim, 10 years ago (diff)

guake 0.4.4-2

  • src/guake

    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): 
    12591259        call this in another thread. This doesn't change any thing in 
    12601260        UI, so you can use python's start_new_thread. 
    12611261        """ 
    1262         os.kill(pid, signal.SIGTERM) 
     1262        try: 
     1263            os.kill(pid, signal.SIGTERM) 
     1264        except OSError: 
     1265            pass 
    12631266        num_tries = 30 
    12641267 
    12651268        while num_tries > 0: 
Note: See TracBrowser for help on using the repository browser.