From 4e1c799608dcc04fe9c524d2a5ecef821f0dc04c Mon Sep 17 00:00:00 2001 From: Heikki Hannikainen Date: Sun, 5 Jan 2014 13:36:36 +0200 Subject: [PATCH] Live upgrade: Only save clients with an FD when going down. * UDP corepeers do not have FDs, and do not need to be live upgraded. --- src/worker.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/worker.c b/src/worker.c index 656f762..e7b1a90 100644 --- a/src/worker.c +++ b/src/worker.c @@ -1815,7 +1815,7 @@ void worker_thread(struct worker_t *self) } #endif /* collect client state first before closing or freeing anything */ - if (worker_shutdown_clients) { + if (worker_shutdown_clients && c->fd >= 0) { cJSON *jc = worker_client_json(c, 1); cJSON_AddItemToArray(worker_shutdown_clients, jc); }