1. Michał Górny
  2. smart-live-rebuild


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.

  • Participants
  • Parent commits ad5659e
  • Branches master

Comments (0)

Files changed (1)

File smartliverebuild/core.py

View file
 			out.result('Found %s%d%s packages to rebuild.' % (out.white, len(packages), out.s1reset))
 		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