Removed redundant unused old code block comment.

Fortune for sink's current commit: Curse − 凶
master
Avril 2 years ago
parent 0ed7cb86cf
commit e072efe9b0
Signed by: flanchan
GPG Key ID: 284488987C31F630

@ -70,18 +70,11 @@ static int save_stderr()
perror("failed to pdup(stderr)");
return 0;
}
#if 0
int sfd = fileno(stderr);
if(UNLIKELY( dup2(b_stderr, sfd) < 0 )) {
perror("failed to dup2() to stderr");
return 0;
} //else if(UNLIKELY( pfd(sfd) < 0 )) return (perror("failed to (redundantly?) FD_CLOEXEC b_stderrr"),0); // TODO: XXX: Does dup2() copy the CLOEXEC flag? Find out, and it it does, remove this line.
#else
if(UNLIKELY( !fdreopen(&stderr, b_stderr, "wb") )) {
perror("failed to reopen parent stderr with pdup()'d stream");
return 0;
}
#endif
return 1;
}

Loading…
Cancel
Save