Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F165095713
D49529.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
836 B
Referenced Files
None
Subscribers
None
D49529.diff
View Options
diff --git a/sys/kern/kern_exit.c b/sys/kern/kern_exit.c
--- a/sys/kern/kern_exit.c
+++ b/sys/kern/kern_exit.c
@@ -375,6 +375,7 @@
* Stop the real interval timer. If the handler is currently
* executing, prevent it from rearming itself and let it finish.
*/
+ p->p_flag2 &= ~P2_ITSTOPPED;
if (timevalisset(&p->p_realtimer.it_value) &&
callout_stop(&p->p_itcallout) == 0) {
timevalclear(&p->p_realtimer.it_interval);
diff --git a/sys/kern/kern_time.c b/sys/kern/kern_time.c
--- a/sys/kern/kern_time.c
+++ b/sys/kern/kern_time.c
@@ -884,6 +884,8 @@
{
sbintime_t prec;
+ if ((p->p_flag & P_WEXIT) != 0)
+ return;
prec = isbtp == NULL ? tvtosbt(p->p_realtimer.it_interval) : *isbtp;
callout_reset_sbt(&p->p_itcallout, tvtosbt(p->p_realtimer.it_value),
prec >> tc_precexp, realitexpire, p, C_ABSOLUTE);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Aug 7, 12:16 AM (9 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
36139327
Default Alt Text
D49529.diff (836 B)
Attached To
Mode
D49529: proc: Disallow re-enabling of process itimers during exit
Attached
Detach File
Event Timeline
Log In to Comment