Backport infanticide prevention patch from head
authorArt Cancro <ajc@citadel.org>
Mon, 20 Sep 2010 20:25:43 +0000 (16:25 -0400)
committerArt Cancro <ajc@citadel.org>
Mon, 20 Sep 2010 20:25:43 +0000 (16:25 -0400)
citadel/context.c

index c5172475200cdc53645435c4c073d79c85c82a8f..2681d85a80b986ac868bcf7dbbbb989797413ddd 100644 (file)
@@ -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;