Re: SCO: "thread creation is about a thousand times faster than on native Linux"

Date: Thu Aug 24 2000 - 15:09:42 EST

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

This archive was generated by hypermail 2b29 : Thu Aug 31 2000 - 21:00:14 EST