Skip to content
Snippets Groups Projects
Commit 8fae2cc6 authored by Martin von Zweigbergk's avatar Martin von Zweigbergk
Browse files

dispatch: don't change error status if flushing stdio fails

If we already have a non-zero exit code, I don't think we should
change it to 255 because we fail to flush stdio. This may not matter
yet, but it will matter when I make a killed pager result in exit code
250 (it's currently 255).

Differential Revision: https://phab.mercurial-scm.org/D11626
parent eb8092f9
No related branches found
No related tags found
No related merge requests found
......@@ -253,7 +253,7 @@
status = -1
ret = _flushstdio(req.ui, err)
if ret:
if ret and not status:
status = ret
return status
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment