if os.WIFSIGNALED(ret):
raise KeyboardInterrupt
if ret != 0 and not ignore_err:
- raise BaseException("command failed.")
+ raise BaseException("command failed:" + cmd)
return ret
# Return true if LyX (identified via lyx_pid) is sleeping
def lyx_sleeping():
fname = '/proc/' + lyx_pid + '/status'
- return intr_system("grep 'State.*sleeping' " + fname)
+ return intr_system("grep 'State.*sleeping' " + fname, True)
def sendKeystring(keystr, LYX_PID):