<quote who="George Vieira"> > I'm now doing mission impossible and trying to work out the source code to > PPTPD server. I was hoping that I could find where it forks off a PPPD > process and as hoping I can get the PPP device it used and add something to > the /var/rub/ppp0.pid file.... YEAH RIGHT!!!
I would expect that you would find the creation of the /var/run/ppp0.pid file doesn't have anything to do with pptpd - pppd creates that file itself, I believe. You might want to look at the scripts in /etc/ppp which ppp runs when it brings up an interface. Those scripts provide a place for you to put custom hooks, and are called with parameters which provide the interface name. If you create a script in there, you should be able to add whichever info you wanted, maybe into a different spot than the /var/run file. > Anybody familiar with forking processes in C that might want to help??? > pwwease... ;-) If you want to find it, you might start by grepping the source code for the string constant 'pppd' and the function 'fork' Cheers, Jan. -- Jan Schmidt [EMAIL PROTECTED] "Karaoke bars combine two of the nation's greatest evils: people who shouldn't drink with people who shouldn't sing." -Tom Dreesen -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
