aboutsummaryrefslogtreecommitdiffstats
path: root/erts/epmd/src/epmd.c
diff options
context:
space:
mode:
authorHenrik Nord <[email protected]>2011-08-30 10:36:38 +0200
committerHenrik Nord <[email protected]>2011-08-30 10:36:43 +0200
commit036f82b9d3e664ec326f1a303d4f990848d94b96 (patch)
treed757a6c21818180a1fb183ee30d4ead17aa90b25 /erts/epmd/src/epmd.c
parent7f5f7b08a8f0ed55126192beaed9d748f14c8f0a (diff)
parentb5ff56daf5e5c507af1c57caeca6cc1ca2fe72e4 (diff)
downloadotp-036f82b9d3e664ec326f1a303d4f990848d94b96.tar.gz
otp-036f82b9d3e664ec326f1a303d4f990848d94b96.tar.bz2
otp-036f82b9d3e664ec326f1a303d4f990848d94b96.zip
Merge branch 'ms/epmd-fix-compiler-warnings' into dev
* ms/epmd-fix-compiler-warnings: epmd: fix compiler warnings OTP-9500
Diffstat (limited to 'erts/epmd/src/epmd.c')
-rw-r--r--erts/epmd/src/epmd.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/erts/epmd/src/epmd.c b/erts/epmd/src/epmd.c
index 08576d923f..2267f9b12b 100644
--- a/erts/epmd/src/epmd.c
+++ b/erts/epmd/src/epmd.c
@@ -324,7 +324,11 @@ static void run_daemon(EpmdVars *g)
}
/* move cwd to root to make sure we are not on a mounted filesystem */
- chdir("/");
+ if (chdir("/") < 0)
+ {
+ dbg_perror(g,"epmd: chdir() failed");
+ epmd_cleanup_exit(g,1);
+ }
umask(0);