ref: 5054c9795cb02c9b4e05608bbf345790619ed3fa
parent: 950e22be6756c42c614287e103397f490cc7f106
author: cinap_lenrek <[email protected]>
date: Mon Jan 22 16:34:39 EST 2018
ip/pptpd: don't mess with ipifc (handled by ppp), slay note gorup on exit
--- a/sys/src/cmd/ip/pptpd.c
+++ b/sys/src/cmd/ip/pptpd.c
@@ -237,6 +237,7 @@
syslog(0, LOG, ": src=%I: server exits", srv.remote);
+ postnote(PNGROUP, getpid(), "die");
exits(0);
}
@@ -626,8 +627,8 @@
{
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;
@@ -646,16 +647,6 @@
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;