[lkml]   [2000]   [Aug]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: SCO: "thread creation is about a thousand times faster than on native Linux"
On Thu, Aug 24, 2000 at 10:44:40PM +0200, wrote:
> wrote:
> > The root thread can tell Linux: I'm a pthreads root thread, I don't want
> > POSIX signals, I want raw signals.
> Hmm, have you just created unkillable processes any non-privileged
> user can run ?
> pthread_trust_me(RAW_SIGNALS_PLEASE);
> for (;;); /* hee hee */

This is not a tough one:

This call shifts delivered signal numbers up so that
"special" POSIX signals can be delivered to a process. Sending signal N to
a thread that has executed this call causes the kernel to deliver
signal N+SIG_RAWSHIFT. So kill(pid,SIG_KILL-SIG_RAWSHIFT) is needed
to hammer such a process.

Make it a root pthread daemon.

Make SIG_KILL still work as usual, with the CLONE_PTHREAD flag
causing all children to be killed too, but with SUSPEND etc
coming in raw.

Victor Yodaiken
Finite State Machine Labs: The RTLinux Company.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

 \ /
  Last update: 2005-03-22 12:38    [W:0.124 / U:1.432 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site