Re: fork to create ppp link !!!
- From: sumit1680@xxxxxxxxxxxxxx
- Date: 21 Nov 2006 21:40:36 -0800
Binary wrote:
Not very got your meaning. what's your small C program doing?Actually I ahve disabled that portion of code intentionally !! just to
The zombie is caused by you not call wait() in parent process when the
child is exit.
man wait
find out the status of prosess (pppd) from cmnd prmt .
I did not understand this do you want me to add debug option to execlp
And, why you can't bring up your PPP link? Add two lines to your ppp
file:
debug
logfile xxx.log
....
call as pppd argument ?
Then check the debug infomation. Do you have ppp-on ppp-off script? WhyAs i have clarified , the intention here is to have a data path for
not use this?
CSD calls . I have set up siganlling portion of CSD call so no scipts
with ppp on is required
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: Binary
- Re: fork to create ppp link !!!
- References:
- fork to create ppp link !!!
- From: sumit1680
- Re: fork to create ppp link !!!
- From: Binary
- fork to create ppp link !!!
- Prev by Date: Re: openpty() function
- Next by Date: Re: Important Information
- Previous by thread: Re: fork to create ppp link !!!
- Next by thread: Re: fork to create ppp link !!!
- Index(es):
Relevant Pages
|