mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-14 14:55:41 +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:
parent
6406fd0be6
commit
300fa5ef6e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=184217
@ -638,7 +638,8 @@ lim_cb(void *arg)
|
|||||||
psignal(p, SIGXCPU);
|
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
|
int
|
||||||
|
Loading…
Reference in New Issue
Block a user