Annotation of /trunk/ppp/patches/ppp-2.4.4-kill-pg.patch
Parent Directory | Revision Log
Revision 797 -
(hide annotations)
(download)
Mon May 11 09:46:04 2009 UTC (15 years, 1 month ago) by niro
File size: 890 byte(s)
Mon May 11 09:46:04 2009 UTC (15 years, 1 month ago) by niro
File size: 890 byte(s)
-added patches from gentoo
1 | niro | 797 | diff -Nru ppp-2.4.4.orig/pppd/main.c ppp-2.4.4/pppd/main.c |
2 | --- ppp-2.4.4.orig/pppd/main.c 2008-04-12 09:51:21.000000000 +0300 | ||
3 | +++ ppp-2.4.4/pppd/main.c 2008-04-12 10:11:19.000000000 +0300 | ||
4 | @@ -147,7 +147,7 @@ | ||
5 | int hungup; /* terminal has been hung up */ | ||
6 | int privileged; /* we're running as real uid root */ | ||
7 | int need_holdoff; /* need holdoff period before restarting */ | ||
8 | -int detached; /* have detached from terminal */ | ||
9 | +int detached = 0; /* have detached from terminal */ | ||
10 | volatile int status; /* exit status for pppd */ | ||
11 | int unsuccess; /* # unsuccessful connection attempts */ | ||
12 | int do_callback; /* != 0 if we should do callback next */ | ||
13 | @@ -460,6 +460,8 @@ | ||
14 | */ | ||
15 | if (!nodetach && !updetach) | ||
16 | detach(); | ||
17 | + else | ||
18 | + setsid(); /* set the process group, see http://bugs.gentoo.org/show_bug.cgi?id=181145 */ | ||
19 | p = getlogin(); | ||
20 | if (p == NULL) { | ||
21 | pw = getpwuid(uid); |