ip/pptpd: don't mess with ipifc (handled by ppp), slay note gorup on exit

This commit is contained in:
cinap_lenrek 2018-01-22 21:34:39 +01:00
parent 950e22be67
commit 5054c9795c

View file

@ -237,6 +237,7 @@ main(int argc, char *argv[])
syslog(0, LOG, ": src=%I: server exits", srv.remote);
postnote(PNGROUP, getpid(), "die");
exits(0);
}
@ -626,8 +627,8 @@ callalloc(int id)
{
uint h;
Call *c;
char buf[300], *argv[30], local[20], remote[20], **p;
int fd, pfd[2], n;
char *argv[30], local[20], remote[20], **p;
int pfd[2];
h = id%Nhash;
@ -647,16 +648,6 @@ callalloc(int id)
if(pipe(pfd) < 0)
myfatal("callalloc: pipe failed: %r");
sprint(buf, "%s/ipifc/clone", srv.pppdir);
fd = open(buf, OWRITE);
if(fd < 0)
myfatal("callalloc: could not open %s: %r", buf);
n = sprint(buf, "iprouting");
if(write(fd, buf, n) < n)
myfatal("callalloc: write to ifc failed: %r");
close(fd);
p = argv;
*p++ = srv.pppexec;
*p++ = "-SC";