From 5054c9795cb02c9b4e05608bbf345790619ed3fa Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Mon, 22 Jan 2018 21:34:39 +0100 Subject: [PATCH] ip/pptpd: don't mess with ipifc (handled by ppp), slay note gorup on exit --- sys/src/cmd/ip/pptpd.c | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/sys/src/cmd/ip/pptpd.c b/sys/src/cmd/ip/pptpd.c index 9e4c15711..3bf5b99df 100644 --- a/sys/src/cmd/ip/pptpd.c +++ b/sys/src/cmd/ip/pptpd.c @@ -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";