chiark / gitweb /
ipif/service.c: Delete the `signals' vector.
[userv-utils.git] / ipif / service.c
index ca02330ec621aa32616a1a746fe5bff08163a990..44d15869c4e29ac742e6ca7c9f7e697ea9591e93 100644 (file)
 
 static const unsigned long gidmaxval= (unsigned long)((gid_t)-2);
 static const char *const protos_ok[]= { "slip", 0 };
-static const int signals[]= { SIGHUP, SIGINT, SIGTERM, 0 };
 static const char default_ifnamepat[]= "userv%d";
 
 static const char *configstr, *proto;
@@ -460,6 +459,7 @@ static void pfile(const char *filename) {
     badusage("failed while reading configuration file: %s", strerror(errno));
 
   cpplace= npp.parent;
+  fclose(file);
 }
 
 static void pconfig(const char *configstr, int truncated) {