Re: fork to create ppp link !!!
- From: "Binary" <binary.chen@xxxxxxxxx>
- Date: 21 Nov 2006 17:02:30 -0800
Not very got your meaning. what's your small C program doing?
The zombie is caused by you not call wait() in parent process when the
child is exit.
man wait
And, why you can't bring up your PPP link? Add two lines to your ppp
file:
debug
logfile xxx.log
.....
Then check the debug infomation. Do you have ppp-on ppp-off script? Why
not use this?
On 11月21日, 下午8时34分, sumit1...@xxxxxxxxxxxxxx wrote:
Hi ,
I am sorry if the topic is off this group but i will post anyway.
I am stuck with a issue here .
what i have been trying is to start a PPP link between a phone and host
(n/w) using PPPD daemon in linux using my code.
the psuedo code being something like
pid = fork();
if (pid==0) //child
execlp("/usr/sbin/pppd","115200",file,"<a unique file >",NULL);
else
record_pid in parent;
The unique file has params( is created at run time ):
<device > ( for ex /dev/ttymzx0 for UART 1)
crtscts
nodetach
noauth
defaultroute
Now the issue :
This piece of code is run on a Mobilinux platform with PPPD .ko
inserted in kernel at run time.
(let me be specific , the intention here is to bring up a data path
between phone and network using AT or else !)
but this call does not result in pppd to start else i can see a zombie
process cretaed whcih of course is handled by my signal handlers.
Now if i write a small C program to do the exact above only ( devoid of
all the else i did in my module ) and use the cross compiler to get the
executble for ARM and run it independently on target then this does
seem to bring up the pppd daemon and process does not dies as in my
module.The data path is actully up !!!! the PID of PPPD cnfnms this .
what am i doing wrong?Pls comment .....
thanks for the answers!!!
.
- Follow-Ups:
- Re: fork to create ppp link !!!
- From: sumit1680
- Re: fork to create ppp link !!!
- References:
- fork to create ppp link !!!
- From: sumit1680
- fork to create ppp link !!!
- Prev by Date: Nautilus bug (desktop refresh)?
- Next by Date: Re: Samba Team rejects Novel patent deal with MS
- Previous by thread: fork to create ppp link !!!
- Next by thread: Re: fork to create ppp link !!!
- Index(es):
Relevant Pages
|