mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-25 20:27:34 +08:00
完善代码
This commit is contained in:
parent
4cae88e242
commit
b2fe8c926c
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user