peek(1): close streams
This commit is contained in:
parent
6b90e0e1da
commit
5f721f745b
@ -127,6 +127,11 @@ int main(int argc, char *argv[]){
|
||||
}
|
||||
|
||||
restore_echo(0);
|
||||
|
||||
if(outputs[2] /* -p */ != NULL){
|
||||
fclose(outputs[2]);
|
||||
close(p[1]);
|
||||
}
|
||||
|
||||
return EX_OK;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user