Home
last modified time | relevance | path

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

/freebsd/sys/contrib/openzfs/cmd/zed/
H A Dzed_conf.c47 zcp->pid_fd = -1; /* opened in zed_conf_write_pid() */ in zed_conf_init()
81 if (zcp->pid_fd >= 0) { in zed_conf_destroy()
82 if (close(zcp->pid_fd) < 0) in zed_conf_destroy()
86 zcp->pid_fd = -1; in zed_conf_destroy()
456 assert(zcp->pid_fd == -1); in zed_conf_write_pid()
481 zcp->pid_fd = open(zcp->pid_file, O_RDWR | O_CREAT | O_CLOEXEC, 0644); in zed_conf_write_pid()
483 if (zcp->pid_fd < 0) { in zed_conf_write_pid()
488 rv = zed_file_lock(zcp->pid_fd); in zed_conf_write_pid()
494 pid_t pid = zed_file_is_locked(zcp->pid_fd); in zed_conf_write_pid()
518 } else if (write(zcp->pid_fd, buf, n) != n) { in zed_conf_write_pid()
[all …]
H A Dzed_conf.h32 int pid_fd; /* fd to pid file for lock */ member