projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8dacea4
)
Backport infanticide prevention patch from head
author
Art Cancro
<ajc@citadel.org>
Mon, 20 Sep 2010 20:25:43 +0000
(16:25 -0400)
committer
Art Cancro
<ajc@citadel.org>
Mon, 20 Sep 2010 20:25:43 +0000
(16:25 -0400)
citadel/context.c
patch
|
blob
|
history
diff --git
a/citadel/context.c
b/citadel/context.c
index c5172475200cdc53645435c4c073d79c85c82a8f..2681d85a80b986ac868bcf7dbbbb989797413ddd 100644
(file)
--- 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;