Skip to content
Snippets Groups Projects
Commit e0e4688a authored by Jan Včelák's avatar Jan Včelák :rocket:
Browse files

knot: remove restart handling from main()

parent 1408c9bd
No related branches found
No related tags found
No related merge requests found
......@@ -34,8 +34,6 @@
* Common types and constants.
*/
#define PROJECT_EXENAME "knotd"
#define PROJECT_EXEC SBINDIR "/" PROJECT_EXENAME /*!< \brief Project executable. */
#define PID_FILE "knot.pid" /*!< \brief Server PID file name. */
/*
......
......@@ -41,7 +41,6 @@
/* Signal flags. */
static volatile short sig_req_stop = 0;
static volatile short sig_req_rst = 0;
static volatile short sig_req_reload = 0;
static volatile short sig_req_refresh = 0;
static volatile short sig_stopping = 0;
......@@ -402,10 +401,6 @@ int main(int argc, char **argv)
free(cwd);
}
/* Restart hook. */
if (sig_req_rst)
return execvp(PROJECT_EXEC, argv);
return res;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment