Home
last modified time | relevance | path

Searched refs:pid_fd (Results 1 – 2 of 2) sorted by relevance

/f-stack/freebsd/contrib/openzfs/cmd/zed/
H A Dzed_conf.c49 zcp->pid_fd = -1; in zed_conf_create()
98 if (zcp->pid_fd >= 0) { in zed_conf_destroy()
99 if (close(zcp->pid_fd) < 0) in zed_conf_destroy()
103 zcp->pid_fd = -1; in zed_conf_destroy()
469 assert(zcp->pid_fd == -1); in zed_conf_write_pid()
496 if (zcp->pid_fd < 0) { in zed_conf_write_pid()
501 rv = zed_file_lock(zcp->pid_fd); in zed_conf_write_pid()
534 } else if (fdatasync(zcp->pid_fd) < 0) { in zed_conf_write_pid()
542 if (zcp->pid_fd >= 0) { in zed_conf_write_pid()
543 (void) close(zcp->pid_fd); in zed_conf_write_pid()
[all …]
H A Dzed_conf.h34 int pid_fd; /* fd to pid file for lock */ member