Re: fork to create ppp link !!!
- From: "Binary" <binary.chen@xxxxxxxxx>
- Date: 22 Nov 2006 16:19:40 -0800
On 11月22日, 下午1时40分, sumit1...@xxxxxxxxxxxxxx wrote:
Binary wrote:
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 waitActually I ahve disabled that portion of code intentionally !! just tofind out the status of prosess (pppd) from cmnd prmt .
And, why you can't bring up your PPP link? Add two lines to your ppp
file:
debugcall as pppd argument ?> Then check the debug infomation. Do you have ppp-on ppp-off script? Why
logfile xxx.log
....I did not understand this do you want me to add debug option to execlp
not use this? As i have clarified , the intention here is to have a data path forCSD calls . I have set up siganlling portion of CSD call so no scipts
with ppp on is required
YOUR PPP link establishment will fail in one case, right? So I told you
to log the PPP fail infomation to see what happened, any problem?
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!!!
.
- References:
- fork to create ppp link !!!
- From: sumit1680
- Re: fork to create ppp link !!!
- From: Binary
- Re: fork to create ppp link !!!
- From: sumit1680
- fork to create ppp link !!!
- Prev by Date: Re: dealing with EIO errors
- Next by Date: problem with pthread_mutex_timedlock
- Previous by thread: Re: fork to create ppp link !!!
- Next by thread: Nautilus bug (desktop refresh)?
- Index(es):
Relevant Pages
|