On 10 May 2002, Peter Riocreux wrote:

> 
> I have finally tracked this down and my connection works just fine.
> 
> The problem is that if pppoa3 dies, it doesn't seem, under any
> circumstances I have experienced yet, to remove /var/run/pppoa3-* (I
> can't remmber the exact filename). I thought this wasn't a problem
> because if you use the -c option to pppoa3 I understood from the docs,
> and the logfile messages, that it would kill any other copy of itself
> and then run. However when there is no process, but there is a file in
> /var/run, it gets into the state I described, where it starts the pty,
> so pppd thinks it is okay, but no data actually passes.
> 
I've noticed this one but my restart script deletes the file.

It's this bit of code:

                                        report(0, REPORT_INFO, "Sending the kill 
signal to %d and waiting...\n",pid);
                                        kill(pid, SIGTERM);


Here we should check the return value of kill - maybe even do a kill(pid,0)

If the process doesn't exist then just delete the file.

Regards,

Tim.


-- 
God said, "div D = rho, div B = 0, curl E = - @B/@t, curl H = J + @D/@t," 
and there was light.

     http://tjw.hn.org/      http://www.locofungus.btinternet.co.uk/



Liste de diffusion modem ALCATEL SpeedTouch USB
Pour se d�sinscrire : mailto:[EMAIL PROTECTED]?subject=unsubscribe

        

Reply via email to