Commit b2fe8c92 by xiongziliang

完善代码

parent 4cae88e2
......@@ -109,7 +109,7 @@ void Process::run(const string &cmd, const string &log_file_tmp) {
fprintf(stderr, "\r\n\r\n#### pid=%d,cmd=%s #####\r\n\r\n", getpid(), cmd.data());
//关闭父进程继承的fd
for (int i = 3; i < 1024; i++) {
for (int i = 3; i < getdtablesize(); i++) {
::close(i);
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论