mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
[mailcap] Close also STDERR
This commit is contained in:
parent
0401fd58dc
commit
b33e6cf520
@ -107,8 +107,8 @@ mailcap_protocol_handler(struct connection *conn)
|
||||
if (dup2(pipe_read[1], STDOUT_FILENO) < 0) {
|
||||
_exit(2);
|
||||
}
|
||||
/* We implicitly chain stderr to ELinks' stderr. */
|
||||
close_all_non_term_fd();
|
||||
close(STDERR_FILENO);
|
||||
|
||||
if (execl("/bin/sh", "/bin/sh", "-c", script, (char *) NULL)) {
|
||||
_exit(3);
|
||||
|
Loading…
Reference in New Issue
Block a user