implemented fifo command P

This commit is contained in:
Unbit
2013-09-18 11:20:55 +02:00
parent 88ce0181b3
commit f2491536dd
3 changed files with 11 additions and 0 deletions
+1
View File
@@ -30,6 +30,7 @@ void uwsgi_master_fifo_prepare() {
uwsgi_fifo_table['l'] = uwsgi_log_reopen;
uwsgi_fifo_table['L'] = uwsgi_log_rotate;
uwsgi_fifo_table['p'] = suspend_resume_them_all;
uwsgi_fifo_table['P'] = uwsgi_update_pidfiles;
uwsgi_fifo_table['Q'] = kill_them_all;
uwsgi_fifo_table['r'] = grace_them_all;
uwsgi_fifo_table['R'] = reap_them_all;
+9
View File
@@ -4535,3 +4535,12 @@ void uwsgi_print_sym(char *opt, char *symbol, void *foobar) {
exit(0);
}
void uwsgi_update_pidfiles() {
if (uwsgi.pidfile) {
uwsgi_write_pidfile(uwsgi.pidfile);
}
if (uwsgi.pidfile2) {
uwsgi_write_pidfile(uwsgi.pidfile2);
}
}
+1
View File
@@ -4325,6 +4325,7 @@ void uwsgi_log_reopen();
void uwsgi_reload_workers();
void uwsgi_chain_reload();
void uwsgi_refork_master();
void uwsgi_update_pidfiles();
#ifdef __cplusplus
}