Avoid close(-1) in r2pipe (#17617)

* Do not close(-1)
* Remove commented code

Co-authored-by: pancake <pancake@nopcode.org>
This commit is contained in:
pancake 2020-09-10 05:56:58 +02:00 committed by GitHub
parent 0d6a2bcf91
commit 6ead7f0eea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -304,7 +304,6 @@ R_API R2Pipe *r2pipe_open(const char *cmd) {
fflush (stderr);
// trigger the blocking read
write (1, "\xff", 1);
close (r2p->output[0]);
close (r2p->output[1]);
close (0);
close (1);