Subj : Re: Stopping Program under LinuxThreads To : comp.programming.threads From : Ben Hutchings Date : Thu Sep 29 2005 04:37 pm PC wrote: > Hello! > > I have a threaded server that works fine under NPTL, but when I move it > to a Linux 2.4.31 system that uses LinuxThreads, I'm running into a > problem. What happens is that the init script loops for a while and > eventually reports failure when I use it to stop the server daemon. Is your daemon recording its PID in /var/run/${base}.pid (where ${base} is its base filename)? If not, try doing that, because this will enable killproc to find and kill the right thread if the process uses LinuxThreads. This must of course be done after any fork()ing used in creating the daemon process. Ben. -- Ben Hutchings Beware of bugs in the above code; I have only proved it correct, not tried it. - Donald Knuth .