Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F159346302
D57486.id179326.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
520 B
Referenced Files
None
Subscribers
None
D57486.id179326.diff
View Options
diff --git a/sys/kern/kern_fork.c b/sys/kern/kern_fork.c
--- a/sys/kern/kern_fork.c
+++ b/sys/kern/kern_fork.c
@@ -675,11 +675,6 @@
callout_init_mtx(&p2->p_itcallout, &p2->p_mtx, 0);
- /*
- * This begins the section where we must prevent the parent
- * from being swapped.
- */
- _PHOLD(p1);
PROC_UNLOCK(p1);
/*
@@ -786,10 +781,6 @@
*/
knote_fork(p1->p_klist, p2->p_pid);
- /*
- * Now can be swapped.
- */
- _PRELE(p1);
PROC_UNLOCK(p1);
SDT_PROBE3(proc, , , create, p2, p1, fr->fr_flags);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Jun 14, 3:00 AM (8 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33790275
Default Alt Text
D57486.id179326.diff (520 B)
Attached To
Mode
D57486: fork: Drop an uneeded PHOLD/PRELE pair
Attached
Detach File
Event Timeline
Log In to Comment