From: Nadav Har'El <[email protected]>
Committer: Nadav Har'El <[email protected]>
Branch: master
kill(): remove duplicate code
Just a few lines above, we had exactly the same code... No need to do
it again.
Signed-off-by: Nadav Har'El <[email protected]>
Message-Id: <[email protected]>
---
diff --git a/libc/signal.cc b/libc/signal.cc
--- a/libc/signal.cc
+++ b/libc/signal.cc
@@ -353,10 +353,6 @@ int kill(pid_t pid, int sig)
// FIXME: proper second (siginfo) and third (context)
arguments (See example in call_signal_handler)
sa.sa_sigaction(sig, nullptr, nullptr);
} else {
- if (sa.sa_flags & SA_RESETHAND) {
- signal_actions[sig].sa_flags = 0;
- signal_actions[sig].sa_handler = SIG_DFL;
- }
sa.sa_handler(sig);
}
},
sched::thread::attr().detached().stack(65536).name("signal_handler"));
--
You received this message because you are subscribed to the Google Groups "OSv
Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.