summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kernel/acct.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/acct.c b/kernel/acct.c
index 51188603b258..87773725a0dc 100644
--- a/kernel/acct.c
+++ b/kernel/acct.c
@@ -180,8 +180,8 @@ static void acct_file_reopen(struct bsd_acct_struct *acct, struct file *file,
if (file) {
acct->file = file;
acct->ns = ns;
- acct->needcheck = jiffies + ACCT_TIMEOUT*HZ;
- acct->active = 1;
+ acct->needcheck = jiffies;
+ acct->active = 0;
list_add(&acct->list, &acct_list);
}
if (old_acct) {