issue-658: correctly close socketpair fds when socketpair fails

This applies patch by glider.
This commit is contained in:
Aliaksey Kandratsenka 2014-11-27 10:43:11 -08:00
parent e7d5e512b0
commit 3ace468202

View File

@ -156,8 +156,8 @@ int SymbolTable::Symbolize() {
close(child_fds[j][0]);
close(child_fds[j][1]);
PrintError("Cannot create a socket pair");
return 0;
}
return 0;
} else {
if ((child_fds[i][0] > 2) && (child_fds[i][1] > 2)) {
if (child_in == NULL) {