1
0
Fork 0

peek(1): close streams

This commit is contained in:
dtb 2024-04-17 14:35:59 -06:00
parent 6b90e0e1da
commit 5f721f745b
1 changed files with 5 additions and 0 deletions

View File

@ -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;
}