Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F160269626
D54326.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
485 B
Referenced Files
None
Subscribers
None
D54326.id.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
@@ -161,8 +161,14 @@
{
struct sysent *se;
- if (offset == 0)
- return (0); /* XXX? */
+ if (offset == 0) {
+ /*
+ * Syscall #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
Tue, Jun 23, 6:33 PM (17 h, 5 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34213269
Default Alt Text
D54326.id.diff (485 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