(play): Close input_fd when execute's done. Broken in rev. 1.1.

This commit is contained in:
Markus Armbruster 2007-11-27 19:55:34 +00:00
parent 90a53439b2
commit 0b058415a1

View file

@ -278,6 +278,8 @@ play(int sock)
send_eof = 1; send_eof = 1;
if (input_fd) { if (input_fd) {
/* execute done, switch back to fd 0 */ /* execute done, switch back to fd 0 */
if (input_fd > 0)
close(input_fd);
input_fd = 0; input_fd = 0;
} else { } else {
/* stop reading input, drain socket ring buffers */ /* stop reading input, drain socket ring buffers */