Fix bad fork() return value handling

pull/161/head
Tatsuhiro Tsujikawa 2013-12-06 00:40:08 +09:00
parent efe7d10b18
commit 2c566ccb68
1 changed files with 1 additions and 1 deletions

View File

@ -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(),