qrexec: do not exit from qrexec-client until local process exit code is sent
This commit is contained in:
parent
662813dc18
commit
04816e014b
@ -293,11 +293,11 @@ static void handle_input(libvchan_t *vchan)
|
|||||||
/* if this is "remote" service end and no real local process
|
/* if this is "remote" service end and no real local process
|
||||||
* exists (using own stdin/out) send also fake exit code */
|
* exists (using own stdin/out) send also fake exit code */
|
||||||
send_exit_code(vchan, 0);
|
send_exit_code(vchan, 0);
|
||||||
}
|
|
||||||
do_exit(0);
|
do_exit(0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (!write_vchan_all(vchan, buf, ret)) {
|
if (!write_vchan_all(vchan, buf, ret)) {
|
||||||
if (!libvchan_is_open(vchan)) {
|
if (!libvchan_is_open(vchan)) {
|
||||||
// agent disconnected its end of socket, so no future data will be
|
// agent disconnected its end of socket, so no future data will be
|
||||||
|
Loading…
Reference in New Issue
Block a user