aboutsummaryrefslogtreecommitdiffstats
path: root/erts/epmd/src/epmd.c
diff options
context:
space:
mode:
authorMichael Santos <[email protected]>2011-06-03 10:34:15 -0400
committerRaimo Niskanen <[email protected]>2011-06-07 17:35:36 +0200
commitb5ff56daf5e5c507af1c57caeca6cc1ca2fe72e4 (patch)
tree72bbdc7fb55242eca9b0178e4d41a1800b4b2037 /erts/epmd/src/epmd.c
parent612de104d23a01d5753ca39f4db4e14ba0234897 (diff)
downloadotp-b5ff56daf5e5c507af1c57caeca6cc1ca2fe72e4.tar.gz
otp-b5ff56daf5e5c507af1c57caeca6cc1ca2fe72e4.tar.bz2
otp-b5ff56daf5e5c507af1c57caeca6cc1ca2fe72e4.zip
epmd: fix compiler warnings
Suppress compiler warnings about ignored return values.
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);