mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-13 03:31:45 +08:00
完善代码
This commit is contained in:
@@ -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());
|
fprintf(stderr, "\r\n\r\n#### pid=%d,cmd=%s #####\r\n\r\n", getpid(), cmd.data());
|
||||||
|
|
||||||
//关闭父进程继承的fd
|
//关闭父进程继承的fd
|
||||||
for (int i = 3; i < 1024; i++) {
|
for (int i = 3; i < getdtablesize(); i++) {
|
||||||
::close(i);
|
::close(i);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user