Commit 7a50aa61 authored by Natanael Copa's avatar Natanael Copa
Browse files

url: allow wget report error messages

parent d8837aa6
......@@ -47,10 +47,9 @@ static int fork_wget(const char *url)
if (pid == 0) {
setsid();
close(fds[0]);
dup2(open("/dev/null", O_WRONLY), STDERR_FILENO);
dup2(open("/dev/null", O_RDONLY), STDIN_FILENO);
dup2(fds[1], STDOUT_FILENO);
execlp("wget", "wget", "-O", "-", url, NULL);
execlp("wget", "wget", "-q", "-O", "-", url, NULL);
exit(0);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment