Changeset View
Changeset View
Standalone View
Standalone View
usr.sbin/autofs/common.c
Show First 20 Lines • Show All 1,198 Lines • ▼ Show 20 Lines | lesser_daemon(void) | ||||
error = close(fd); | error = close(fd); | ||||
if (error != 0) { | if (error != 0) { | ||||
/* Bloody hell. */ | /* Bloody hell. */ | ||||
log_warn("close"); | log_warn("close"); | ||||
} | } | ||||
} | } | ||||
/* | |||||
* Applicable to NFSv3 only, see rpc.umntall(8). | |||||
*/ | |||||
void | |||||
rpc_umntall(void) | |||||
{ | |||||
FILE *f; | |||||
f = auto_popen("rpc.umntall", "-k", NULL); | |||||
assert(f != NULL); | |||||
auto_pclose(f); | |||||
} | |||||
int | int | ||||
main(int argc, char **argv) | main(int argc, char **argv) | ||||
{ | { | ||||
char *cmdname; | char *cmdname; | ||||
if (argv[0] == NULL) | if (argv[0] == NULL) | ||||
log_errx(1, "NULL command name"); | log_errx(1, "NULL command name"); | ||||
Show All 12 Lines |