コード例 #1
0
ファイル: gevent.c プロジェクト: chiwong/flask_quickstart
void uwsgi_gevent_gbcw() {

	uwsgi_log("...The work of process %d is done. Seeya!\n", getpid());
	
	py_uwsgi_gevent_graceful(NULL, NULL);

	exit(0);

}
コード例 #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;
}