summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2013-12-06 00:40:08 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2013-12-06 00:40:08 +0900
commit2c566ccb68c5a31b093e64d73aeafb89efe9526a (patch)
treee95c2b1c87e9f88daab714cd78afc174f89c0bc6 /src
parentefe7d10b18de2a2846950ee21be538b25795b8b8 (diff)
Fix bad fork() return value handling
Diffstat (limited to 'src')
-rw-r--r--src/util.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.cc b/src/util.cc
index 78766aea..3d9e8548 100644
--- a/src/util.cc
+++ b/src/util.cc
@@ -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(),