Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F160169027
D54326.id168689.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
462 B
Referenced Files
None
Subscribers
None
D54326.id168689.diff
View Options
diff --git a/sys/kern/kern_syscalls.c b/sys/kern/kern_syscalls.c
--- a/sys/kern/kern_syscalls.c
+++ b/sys/kern/kern_syscalls.c
@@ -162,7 +162,11 @@
struct sysent *se;
if (offset == 0)
- return (0); /* XXX? */
+ /*
+ * Syscall number 0 is reserved and is not dynamically registered.
+ * Treat deregistration as a no-op to simplify module unload paths.
+ */
+ return (0);
se = &sysents[offset];
if ((se->sy_thrcnt & SY_THR_STATIC) != 0)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Jun 22, 9:13 PM (1 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34212790
Default Alt Text
D54326.id168689.diff (462 B)
Attached To
Mode
D54326: kern: document no-op handling of syscall number 0 during deregistration
Attached
Detach File
Event Timeline
Log In to Comment