Skip to content

Commit

Permalink
Avoid closing stderr when MSG_DATA_EXIT_CODE is received
Browse files Browse the repository at this point in the history
MSG_DATA_EXIT_CODE is ignored by services, and clients always have
stderr_fd == -1.
  • Loading branch information
DemiMarie committed May 22, 2024
1 parent 0701529 commit 2b71adb
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions libqrexec/process_io.c
Original file line number Diff line number Diff line change
Expand Up @@ -339,8 +339,6 @@ int qrexec_process_io(const struct process_io_request *req,
libvchan_send(vchan, &hdr, (int)sizeof(hdr));
}
close_stdout();
close_stderr(stderr_fd);
stderr_fd = -1;
break;
}
if (prefix.len > 0 || (stdout_fd >= 0 && fds[FD_STDOUT].revents)) {
Expand Down

0 comments on commit 2b71adb

Please sign in to comment.