mirror of
https://github.com/clearlinux/uwsgi.git
synced 2026-09-06 05:31:44 +00:00
implemented fifo command P
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user