From: Art Cancro Date: Mon, 20 Sep 2010 20:25:43 +0000 (-0400) Subject: Backport infanticide prevention patch from head X-Git-Tag: v7.86~50 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=7b6e11eab806fa8b8454fe66d2c49074c206589d Backport infanticide prevention patch from head --- diff --git a/citadel/context.c b/citadel/context.c index c51724752..2681d85a8 100644 --- a/citadel/context.c +++ b/citadel/context.c @@ -385,6 +385,7 @@ CitContext *CreateNewContext(void) { me->cs_pid = ++next_pid; me->prev = NULL; me->next = ContextList; + me->lastcmd = time(NULL); /* set lastcmd to now to prevent idle timer infanticide */ ContextList = me; if (me->next != NULL) { me->next->prev = me;