(play): Close input_fd when execute's done. Broken in rev. 1.1.
This commit is contained in:
parent
90a53439b2
commit
0b058415a1
1 changed files with 2 additions and 0 deletions
|
@ -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 */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue