Home
last modified time | relevance | path

Searched refs:otherpid (Results 1 – 18 of 18) sorted by relevance

/freebsd/contrib/pf/authpf/
H A Dauthpf.c233 int save_errno, otherpid = -1; in main() local
253 if (fscanf(pidfp, "%d\n%31s\n", &otherpid, otherluser) != 2) in main()
254 otherpid = -1; in main()
256 pidfile, otherpid, strerror(save_errno)); in main()
258 if (otherpid > 0) { in main()
261 otherpid, ipsrc, otherluser); in main()
262 if (kill((pid_t) otherpid, SIGTERM) == -1) { in main()
265 otherpid); in main()
277 otherpid); in main()
/freebsd/usr.sbin/autofs/
H A Dautounmountd.c265 pid_t otherpid; in main_autounmountd() local
302 pidfh = pidfile_open(pidfile_path, 0600, &otherpid); in main_autounmountd()
306 (intmax_t)otherpid); in main_autounmountd()
H A Dautomountd.c435 pid_t pid, otherpid; in main_automountd() local
483 pidfh = pidfile_open(pidfile_path, 0600, &otherpid); in main_automountd()
487 (intmax_t)otherpid); in main_automountd()
/freebsd/usr.sbin/cron/cron/
H A Dcron.c77 int otherpid; in open_pidfile() local
79 pfh = pidfile_open(pidfile, 0600, &otherpid); in open_pidfile()
83 "cron already running, pid: %d", otherpid); in open_pidfile()
/freebsd/usr.sbin/watchdogd/
H A Dwatchdogd.c122 pid_t otherpid; in main() local
145 pfh = pidfile_open(pidfile, 0600, &otherpid); in main()
150 getprogname(), otherpid); in main()
/freebsd/sbin/hastd/
H A Dhastd.c489 pid_t otherpid; in hastd_reload() local
543 newpfh = pidfile_open(newcfg->hc_pidfile, 0600, &otherpid); in hastd_reload()
548 newcfg->hc_pidfile, (intmax_t)otherpid); in hastd_reload()
1185 pid_t otherpid; in main() local
1252 pfh = pidfile_open(cfg->hc_pidfile, 0600, &otherpid); in main()
1257 cfg->hc_pidfile, (intmax_t)otherpid); in main()
/freebsd/usr.sbin/rpc.tlsclntd/
H A Drpc.tlsclntd.c133 pid_t otherpid; in main() local
137 rpctls_pfh = pidfile_open(_PATH_RPCTLSCDPID, 0600, &otherpid); in main()
140 errx(1, "rpctlscd already running, pid: %d.", otherpid); in main()
/freebsd/contrib/openbsm/bin/auditdistd/
H A Dauditdistd.c627 pid_t otherpid; in main() local
727 pfh = pidfile_open(adcfg->adc_pidfile, 0600, &otherpid); in main()
732 (intmax_t)otherpid); in main()
/freebsd/usr.sbin/powerd/
H A Dpowerd.c604 pid_t otherpid; local
606 pfh = pidfile_open(pidfile, 0600, &otherpid);
610 otherpid);
/freebsd/usr.sbin/iscsid/
H A Discsid.c696 pid_t pid, otherpid; in main() local
729 pidfh = pidfile_open(pidfile_path, 0600, &otherpid); in main()
733 (intmax_t)otherpid); in main()
/freebsd/usr.sbin/rpc.tlsservd/
H A Drpc.tlsservd.c157 pid_t otherpid; in main() local
163 rpctls_pfh = pidfile_open(_PATH_RPCTLSSDPID, 0600, &otherpid); in main()
166 errx(1, "rpctlssd already running, pid: %d.", otherpid); in main()
/freebsd/sbin/ggate/ggated/
H A Dggated.c982 pid_t otherpid; in main() local
1036 pfh = pidfile_open(ggated_pidfile, 0600, &otherpid); in main()
1040 (intmax_t)otherpid); in main()
/freebsd/sbin/devd/
H A Ddevd.cc532 pid_t otherpid; in open_pidfile() local
536 pfh = pidfile_open(_pidfile.c_str(), 0600, &otherpid); in open_pidfile()
539 errx(1, "devd already running, pid: %d", (int)otherpid); in open_pidfile()
/freebsd/usr.sbin/rtadvd/
H A Drtadvd.c185 pid_t pid, otherpid; in main() local
245 pfh = pidfile_open(pidfilename, 0600, &otherpid); in main()
249 getprogname(), otherpid); in main()
/freebsd/usr.sbin/inetd/
H A Dinetd.c464 pid_t otherpid; in main() local
466 pfh = pidfile_open(pid_file, 0600, &otherpid); in main()
470 getprogname(), otherpid); in main()
/freebsd/usr.sbin/ctld/
H A Dctld.c1920 pid_t otherpid; in conf_apply() local
1947 pidfile_open(newconf->conf_pidfile_path, 0600, &otherpid); in conf_apply()
1951 (intmax_t)otherpid); in conf_apply()
/freebsd/sbin/dhclient/
H A Ddhclient.c377 pid_t otherpid; in main() local
425 pidfile = pidfile_open(path_dhclient_pidfile, 0644, &otherpid); in main()
428 error("dhclient already running, pid: %d.", otherpid); in main()
/freebsd/usr.sbin/mountd/
H A Dmountd.c412 pid_t otherpid; in main() local
426 pfh = pidfile_open(_PATH_MOUNTDPID, 0600, &otherpid); in main()
429 errx(1, "mountd already running, pid: %d.", otherpid); in main()