bitkeeper revision 1.1528 (4292fdfc5zZkxl3RcxrdBZCU6Rd8EA)

XendDomain.py:
  Handle error case where exec fails.
xpopen.py:
  Exit with 127 if exec fails.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
This commit is contained in:
cl349@firebug.cl.cam.ac.uk committed 2005-05-24 10:12:12 +00:00
1 parent e8968bea9c
commit a5a8a98d1f
2 files changed
+3 -1

No files matched your search

+1 -1
View File
@@ -129,7 +129,7 @@ class xPopen3:
try:
os.execvp(cmd[0], cmd)
finally:
os._exit(1)
os._exit(127)
def poll(self):
"""Return the exit status of the child process if it has finished,
+2
View File
@@ -392,6 +392,8 @@ class XendDomain:
if filter(lambda (fd, event): event & select.POLLHUP, r):
break
if child.wait() >> 8 == 127:
lasterr = "popen %s failed" % PATH_XC_RESTORE
if child.wait() != 0:
raise XendError("xc_restore failed: %s" % lasterr)
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.