Missing close() calls just for the sake of it.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25191 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
9c5c2d9d45
commit
99734c6841
|
@ -88,12 +88,14 @@ send_external_command(const char *command, int *result)
|
||||||
if (bytesRead == 0) {
|
if (bytesRead == 0) {
|
||||||
fprintf(stderr, "Error: Unexpected end of fs_shell reply. Was "
|
fprintf(stderr, "Error: Unexpected end of fs_shell reply. Was "
|
||||||
"still expecting %d bytes\n", toRead);
|
"still expecting %d bytes\n", toRead);
|
||||||
|
close(fd);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
replyBuffer += bytesRead;
|
replyBuffer += bytesRead;
|
||||||
toRead -= bytesRead;
|
toRead -= bytesRead;
|
||||||
}
|
}
|
||||||
|
close(fd);
|
||||||
|
|
||||||
*result = reply.error;
|
*result = reply.error;
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue