提交 3ac4e773 authored 作者: Anthony Minessale's avatar Anthony Minessale

FS-5519 --resolve

上级 3634d4a0
...@@ -336,7 +336,6 @@ static void daemonize(int *fds) ...@@ -336,7 +336,6 @@ static void daemonize(int *fds)
if (fds) { if (fds) {
setsid(); setsid();
} }
return;
/* redirect std* to null */ /* redirect std* to null */
fd = open("/dev/null", O_RDONLY); fd = open("/dev/null", O_RDONLY);
if (fd != 0) { if (fd != 0) {
...@@ -355,6 +354,7 @@ static void daemonize(int *fds) ...@@ -355,6 +354,7 @@ static void daemonize(int *fds)
dup2(fd, 2); dup2(fd, 2);
close(fd); close(fd);
} }
return;
} }
#endif #endif
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论