示例#1
0
文件: coroae.c 项目: Perkville/uwsgi
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();
}
示例#2
0
文件: gevent.c 项目: suchkultur/uwsgi
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;
}
示例#3
0
文件: gevent.c 项目: RyuaNerin/uwsgi
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;
}