schlehmil: you can check for the process first using ps, or use a more pythonic approach ("asking forgiveness is easier than asking permission"):
try: os.kill(ppid) except: pass it would be better to make that except SomeExceptionType: if you can find out which exception is being thrown, of course. -- [fglrx] fglrx + compiz fusion won't resume https://bugs.launchpad.net/bugs/197209 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs