Commits

Michał Górny committed a24b66f

Fix uncatched os.kill() error when child exited earlier.

Unless I'm missing something, the best thing I can do is to ignore
the error.

Comments (0)

Files changed (1)

smartliverebuild/core.py

 			out.result('Found %s%d%s packages to rebuild.' % (out.white, len(packages), out.s1reset))
 	finally:
 		if childpid: # make sure that we leave no orphans
-			os.kill(childpid, signal.SIGTERM)
+			try:
+				os.kill(childpid, signal.SIGTERM)
+			except OSError:
+				pass
 
 	return packages