Does "watchRegistrationPID" work?

Patrick patrick.hld at
Mon Jul 21 19:12:14 CEST 2008

Hello All,
I've read the config file under /etc/slp.conf.
Inside it, there is a section
;net.slp.watchRegistrationPID = false

I think this is about the openslp watching on the services (or process, i.e. sshd, ftpd) in SA.
And if the running services is down, or the pid disappears, SA will know that, and automatically dereg that service out from itself.
Am I right?

If I'm right. I've traced into the code at ./libslp/Libslp_reg.c in line 255.

        extoffset = curpos - buf;
        curpos += 2;
        curpos += 3;
        curpos += 4;
It seems that slpd will get the pid of something.
Normally, it's its own pid, if I didn't miss something.
I also added an printf after it, like this,
printf("pid is : %d\n",*curpos);
But the output is alway 0.

I did the same thing before there a little bit, and I can get the service name.
But the pid is alway 0.

The problem is, 
1. Does the OpenSLP implement the PID watching? The SLPPidGet seems only get pid of slpd.......
2. When the service process disappears, if OpenSLP can know that?
3. Do I need to notice OpenSLP the pid of a specific service? How to do....... Or only the name is enough.

Thanks a lot for any response!

Patrick & Sha
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Freeradius-Devel mailing list