diff options
Diffstat (limited to '')
-rw-r--r-- | src/mds.c | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -19,6 +19,7 @@ #include <libmdsserver/config.h> #include <libmdsserver/macros.h> +#include <libmdsserver/util.h> #include <sys/stat.h> #include <sys/types.h> @@ -107,6 +108,10 @@ int main(int argc_, char** argv_) return 1; } + /* Set up to ignore SIGUSR1, used in mds for re-exec, but we cannot re-exec. */ + if (xsigaction(SIGUSR1, SIG_IGN) < 0) + perror(*argv); + /* Create directory for socket files, PID files and such. */ if (create_directory_root(MDS_RUNTIME_ROOT_DIRECTORY)) return 1; @@ -227,8 +232,8 @@ int main(int argc_, char** argv_) /* Start master server and respawn it if it crashes. */ rc = spawn_and_respawn_server(fd); - - done: + + done: /* Shutdown, close and remove the socket. */ if (fd != -1) { |