Home
last modified time | relevance | path

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

/freebsd-14.2/sys/contrib/openzfs/cmd/zed/
H A Dzed_conf.c80 if (zcp->pid_fd >= 0) { in zed_conf_destroy()
81 if (close(zcp->pid_fd) < 0) in zed_conf_destroy()
85 zcp->pid_fd = -1; in zed_conf_destroy()
455 assert(zcp->pid_fd == -1); in zed_conf_write_pid()
482 if (zcp->pid_fd < 0) { in zed_conf_write_pid()
487 rv = zed_file_lock(zcp->pid_fd); in zed_conf_write_pid()
493 pid_t pid = zed_file_is_locked(zcp->pid_fd); in zed_conf_write_pid()
520 } else if (fdatasync(zcp->pid_fd) < 0) { in zed_conf_write_pid()
528 if (zcp->pid_fd >= 0) { in zed_conf_write_pid()
529 (void) close(zcp->pid_fd); in zed_conf_write_pid()
[all …]
H A Dzed_conf.h31 int pid_fd; /* fd to pid file for lock */ member