Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 210310 Details for
Bug 292374
net-dialup/ppp-2.4.4-r24 kill-pg.patch breaks net-dialup/umtsmon
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
small program showing erroneous behaviour of patched pppd
run-pppd-as-detached-child.c (text/plain), 1.25 KB, created by
Alexander Ost
on 2009-11-15 13:42:10 UTC
(
hide
)
Description:
small program showing erroneous behaviour of patched pppd
Filename:
MIME Type:
Creator:
Alexander Ost
Created:
2009-11-15 13:42:10 UTC
Size:
1.25 KB
patch
obsolete
>#include <stdio.h> >#include <unistd.h> > >/* > * Start pppd as a detached child process. > * > * This shows that option "updetach" together > * with kill-pg.patch leads to immediate > * modem hangup. > */ > > >char *myArgv[] = { > "/usr/sbin/pppd", > "debug", > "kdebug", > "255", > /* the following option, in conjunction with > * pppd 2.4.4-r24 AND kill-pg.patch leads to pppd > * reporting a "modem hangup" immediately > * after PPP connection establishment. > * > * without kill-pg.patch, pppd does NOT > * exit immediately and does NOT report a modem > * hangup > */ > "updetach", > "idle", > "7200", > "dump", > "noauth", > "user", > "foo", > "password", > "bar", > "privgroup", > "uucp", > "/dev/ttyUSB2", > "460800", > "lock", > "crtscts", > "modem", > "asyncmap", > "0", > "defaultroute", > "usepeerdns", > "noipx", > "connect", > "chat -v -f /home/arost/chatfile", > NULL, >}; > >char *myEnv[] = { NULL }; > >main() >{ > int pid; > > if ( pid=fork() ) { > /* parent: don't do much */ > printf( "parent: waiting for child completion...\n" ); > wait( pid ); > printf( "parent: child completed\n" ); > while ( 1 ) { > printf( "parent: sleeping...\n" ); > sleep( 2 ); > > } > } else { > /* child: exec pppd */ > printf( "child: exec'ing pppd\n" ); > execve(myArgv[0], myArgv, myEnv); > } >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 292374
: 210310