int fpkginfo(struct pkginfo *info, char *pkginst) { if (info == NULL) { errno = EINVAL; return (-1); } initpkg(info); if (pkginst == NULL) return (0); else if (pkgnmchk(pkginst, "all", 1)) { errno = EINVAL; /* not an instance identifier */ return (-1); } if (pkgdir == NULL) pkgdir = get_PKGLOC(); if (rdconfig(info, pkginst, NULL)) { initpkg(info); return (-1); } return (0); }
static RETSIGTYPE serv_sighup(int sig) { cleanconfig(); rdconfig(CONFIGFILE); if(conf.debug>0) { puts("Server reconfiguring...\n"); showconfig(); } resetservtraps(); }