Exemple #1
0
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();
}
Exemple #2
0
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;
}
Exemple #3
0
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;
}