summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2018-01-22 21:34:39 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2018-01-22 21:34:39 +0100
commit5054c9795cb02c9b4e05608bbf345790619ed3fa (patch)
tree798ce1d2b618e0a9d6445a6ea66995657184b5a3
parent950e22be6756c42c614287e103397f490cc7f106 (diff)
downloadplan9front-5054c9795cb02c9b4e05608bbf345790619ed3fa.tar.xz
ip/pptpd: don't mess with ipifc (handled by ppp), slay note gorup on exit
-rw-r--r--sys/src/cmd/ip/pptpd.c15
1 files 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";