[go: nahoru, domu]

Skip to content

Commit

Permalink
set FD_CLOEXEC correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
kazuho committed May 21, 2015
1 parent 95b4d4e commit 13605c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1066,7 +1066,7 @@ static int popen_annotate_backtrace_symbols(void)
perror("pipe failed");
return -1;
}
if (fcntl(pipefds[1], FD_CLOEXEC, 1) == -1) {
if (fcntl(pipefds[1], F_SETFD, FD_CLOEXEC) == -1) {
perror("failed to set FD_CLOEXEC on pipefds[1]");
return -1;
}
Expand Down

0 comments on commit 13605c7

Please sign in to comment.