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:
François Revol 2008-04-26 19:35:00 +00:00
parent 9c5c2d9d45
commit 99734c6841
1 changed files with 2 additions and 0 deletions

View File

@ -88,12 +88,14 @@ send_external_command(const char *command, int *result)
if (bytesRead == 0) {
fprintf(stderr, "Error: Unexpected end of fs_shell reply. Was "
"still expecting %d bytes\n", toRead);
close(fd);
return false;
}
replyBuffer += bytesRead;
toRead -= bytesRead;
}
close(fd);
*result = reply.error;
return true;