mirror of https://github.com/aria2/aria2
Fix bad fork() return value handling
parent
efe7d10b18
commit
2c566ccb68
|
@ -1764,7 +1764,7 @@ void executeHook
|
|||
numFilesStr.c_str(),
|
||||
firstFilename.c_str()));
|
||||
pid_t cpid = fork();
|
||||
if (cpid > 0) {
|
||||
if (cpid == 0) {
|
||||
// child!
|
||||
execlp(command.c_str(),
|
||||
command.c_str(),
|
||||
|
|
Loading…
Reference in New Issue