Hi,
Has anyone tried the nodetach option when running pppd?
I have a ppp-on script that is started by a C function using the system() call. ppp-on runs pppd with nodetach option. As a sreuslt, I see lots of messages on the terminal indicating that the connection was established successfully, but pppd does not return back. And hence the calling program remains stuck. When i kill pppd (Ctrl-C), pppd deamon dies and my calling program gets a return code of 5(which is fine because pppd recd a exit SIGNAL). I want pppd to return after establishing the connection or if it cannot establish the connection. Is there a way of making pppd to return control and the status to the calling program while keeping the PPP connection alive?
I ran the same thing without specifying the nodetach option. In this case, ppp-on script returns immedialetly and i cannot know whether the conenction was established or not.
Any help would be highly appreciated.
Thanks,
Ruchika
Has anyone tried the nodetach option when running pppd?
I have a ppp-on script that is started by a C function using the system() call. ppp-on runs pppd with nodetach option. As a sreuslt, I see lots of messages on the terminal indicating that the connection was established successfully, but pppd does not return back. And hence the calling program remains stuck. When i kill pppd (Ctrl-C), pppd deamon dies and my calling program gets a return code of 5(which is fine because pppd recd a exit SIGNAL). I want pppd to return after establishing the connection or if it cannot establish the connection. Is there a way of making pppd to return control and the status to the calling program while keeping the PPP connection alive?
I ran the same thing without specifying the nodetach option. In this case, ppp-on script returns immedialetly and i cannot know whether the conenction was established or not.
Any help would be highly appreciated.
Thanks,
Ruchika