1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-13 14:40:22 +00:00

Don't rearm callout if the process is exiting, it may leak a callout

because callout_drain() only waits for running callout, but not disable
it if it is rearmed.
This commit is contained in:
David Xu 2008-10-24 01:09:24 +00:00
parent 6406fd0be6
commit 300fa5ef6e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=184217

View File

@ -638,7 +638,8 @@ lim_cb(void *arg)
psignal(p, SIGXCPU);
}
}
callout_reset(&p->p_limco, hz, lim_cb, p);
if ((p->p_flag & P_WEXIT) == 0)
callout_reset(&p->p_limco, hz, lim_cb, p);
}
int