Page MenuHomeFreeBSD

D61988.1795616140.diff
No OneTemporary

Authored By
Unknown
Size
802 B
Referenced Files
None
Subscribers
None

D61988.1795616140.diff

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

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)

Event Timeline