Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177944696
D61988.1795616140.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
802 B
Referenced Files
None
Subscribers
None
D61988.1795616140.diff
View Options
diff --git a/sys/compat/linuxkpi/common/src/linux_schedule.c b/sys/compat/linuxkpi/common/src/linux_schedule.c
--- a/sys/compat/linuxkpi/common/src/linux_schedule.c
+++ b/sys/compat/linuxkpi/common/src/linux_schedule.c
@@ -159,6 +159,17 @@
PROC_UNLOCK(td->td_proc);
return (true);
}
+ /*
+ * Likewise for a pending suspension request (single-threading for
+ * a core dump, fork or exec, or a stop signal): interruptible
+ * sleeps are aborted for it, so the caller must return to the user
+ * boundary where the thread can suspend. The system call is
+ * restarted afterwards.
+ */
+ if (td_ast_pending(td, TDA_SUSPEND)) {
+ PROC_UNLOCK(td->td_proc);
+ return (true);
+ }
pending = td->td_siglist;
SIGSETOR(pending, td->td_proc->p_siglist);
SIGSETNAND(pending, td->td_sigmask);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 25, 2:15 PM (20 h, 44 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41992488
Default Alt Text
D61988.1795616140.diff (802 B)
Attached To
Mode
D61988: LinuxKPI: Report a pending signal when the thread must suspend
Attached
Detach File
Event Timeline