summaryrefslogtreecommitdiffstats
path: root/main.cpp
diff options
context:
space:
mode:
authorRainer Keller <rainer.keller@theqtcompany.com>2015-06-03 09:38:16 +0200
committerRainer Keller <rainer.keller@theqtcompany.com>2015-06-03 11:27:47 +0300
commit281140ecdd07fbc48f0bf45d395eedaf6a59fb2f (patch)
treeef66b69842f77e72b57fbfff4607be9adf124285 /main.cpp
parent91882497952ebf33a76888b79125ce9cd56994d3 (diff)
Fix compile warnings
Change-Id: I05fb9bca47f5bcfc3f127eb9a60e6be8bda8193a Reviewed-by: Ulf Hermann <ulf.hermann@theqtcompany.com>
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.cpp b/main.cpp
index 0f3486e..5c47dcf 100644
--- a/main.cpp
+++ b/main.cpp
@@ -433,7 +433,8 @@ int main(int argc, char **argv)
}
setsid();
- chdir("/");
+ if (chdir("/") != 0)
+ return -1;
signal(SIGHUP, SIG_IGN);
// child