static void coroae_gbcw(const char *reason) { if (ucoroae.destroy) return; ucoroae.destroy = 1; uwsgi_log("...The work of process %d is done (reason: %s). Seeya!\n", getpid(), (reason != NULL ? reason : "no reason given")); uwsgi_time_bomb(uwsgi.worker_reload_mercy, 0); coroae_graceful(); }
static void uwsgi_gevent_gbcw() { // already running if (ugevent.destroy) return; uwsgi_log("...The work of process %d is done. Seeya!\n", getpid()); uwsgi_time_bomb(uwsgi.worker_reload_mercy, 0); py_uwsgi_gevent_graceful(NULL, NULL); ugevent.destroy = 1; }
static void uwsgi_gevent_gbcw(const char *reason) { // already running if (ugevent.destroy) return; uwsgi_log("...The work of process %d is done (reason: %s). Seeya!\n", getpid(), (reason != NULL ? reason : "no reason given")); uwsgi_time_bomb(uwsgi.worker_reload_mercy, 0); py_uwsgi_gevent_graceful(NULL, NULL); ugevent.destroy = 1; }