From a46a1ad097419aeea7350987dd95230f50d90392 Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Fri, 15 Nov 2024 08:53:41 +0000
Subject: [PATCH] 固定GMAC1 网卡名为 eth3
---
kernel/kernel/signal.c | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
diff --git a/kernel/kernel/signal.c b/kernel/kernel/signal.c
index f6ecd01..afadec2 100644
--- a/kernel/kernel/signal.c
+++ b/kernel/kernel/signal.c
@@ -763,6 +763,10 @@
void signal_wake_up_state(struct task_struct *t, unsigned int state)
{
set_tsk_thread_flag(t, TIF_SIGPENDING);
+
+ /* TIF_SIGPENDING must be set prior to notifying. */
+ inband_signal_notify(t);
+
/*
* TASK_WAKEKILL also means wake it up in the stopped/traced/killable
* case. We don't check t->state here because there is a race with it
@@ -984,8 +988,11 @@
if (sig == SIGKILL)
return true;
- if (task_is_stopped_or_traced(p))
+ if (task_is_stopped_or_traced(p)) {
+ if (!signal_pending(p))
+ inband_signal_notify(p);
return false;
+ }
return task_curr(p) || !task_sigpending(p);
}
@@ -2145,6 +2152,7 @@
* schedule() will not sleep if there is a pending signal that
* can awaken the task.
*/
+ inband_ptstop_notify();
set_special_state(TASK_TRACED);
/*
@@ -2238,6 +2246,8 @@
read_unlock(&tasklist_lock);
}
+ inband_ptcont_notify();
+
/*
* We are back. Now reacquire the siglock before touching
* last_siginfo, so that we are sure to have synchronized with
--
Gitblit v1.6.2