| … | |
… | |
| 388 | if display_on_tty8: fd_tty.close() |
388 | if display_on_tty8: fd_tty.close() |
| 389 | |
389 | |
| 390 | # close the pipe and save return value |
390 | # close the pipe and save return value |
| 391 | ro_pipe.close() |
391 | ro_pipe.close() |
| 392 | ret = int(open("/tmp/spawn_exitcode", "r").readline().strip()) |
392 | ret = int(open("/tmp/spawn_exitcode", "r").readline().strip()) |
|
|
393 | os.unlink("/tmp/spawn_exitcode") |
| 393 | |
394 | |
| 394 | if return_output: |
395 | if return_output: |
| 395 | return ret, output |
396 | return ret, output |
| 396 | else: |
397 | else: |
| 397 | return ret |
398 | return ret |