Skip to content

Commit 35c522c

Browse files
committed
scripts: Handle e9-style exit with value > 128
Need to convert large e9-style exit values to something in range Signed-off-by: Keith Packard <[email protected]>
1 parent d3c2423 commit 35c522c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scripts/monitor-e9

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ with subprocess.Popen(sys.argv[1:], stdout=subprocess.PIPE, stderr=subprocess.DE
1919
if words[0] == 'exit':
2020
proc.send_signal(1)
2121
status = int(words[1])
22+
if status >= 128:
23+
status = status | 1
2224
break
2325
sys.stdout.write(c.decode('utf-8'))
2426

0 commit comments

Comments
 (0)