Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 296267 | Differences between
and this patch

Collapse All | Expand All

(-)ppp-2.4.4.orig/pppd/main.c (-1 / +3 lines)
Lines 147-153 Link Here
147
int hungup;			/* terminal has been hung up */
147
int hungup;			/* terminal has been hung up */
148
int privileged;			/* we're running as real uid root */
148
int privileged;			/* we're running as real uid root */
149
int need_holdoff;		/* need holdoff period before restarting */
149
int need_holdoff;		/* need holdoff period before restarting */
150
int detached;			/* have detached from terminal */
150
int detached = 0;			/* have detached from terminal */
151
volatile int status;		/* exit status for pppd */
151
volatile int status;		/* exit status for pppd */
152
int unsuccess;			/* # unsuccessful connection attempts */
152
int unsuccess;			/* # unsuccessful connection attempts */
153
int do_callback;		/* != 0 if we should do callback next */
153
int do_callback;		/* != 0 if we should do callback next */
Lines 460-465 Link Here
460
     */
460
     */
461
    if (!nodetach && !updetach)
461
    if (!nodetach && !updetach)
462
	detach();
462
	detach();
463
    else
464
	setsid(); /* set the process group, see http://bugs.gentoo.org/show_bug.cgi?id=181145 */
463
    p = getlogin();
465
    p = getlogin();
464
    if (p == NULL) {
466
    if (p == NULL) {
465
	pw = getpwuid(uid);
467
	pw = getpwuid(uid);

Return to bug 296267