Home
last modified time | relevance | path

Searched refs:pidfile (Results 26 – 50 of 4609) sorted by relevance

12345678910>>...185

/dports/games/pvpgn/pvpgn-1.8.5/src/d2cs/
H A Dmain.c119 char *pidfile = xstrdup(prefs_get_pidfile()); in write_to_pidfile() local
121 if (pidfile[0]=='\0') { in write_to_pidfile()
122 xfree((void *)pidfile); /* avoid warning */ in write_to_pidfile()
126 if (pidfile) { in write_to_pidfile()
130 if (!(fp = fopen(pidfile,"w"))) { in write_to_pidfile()
142 xfree((void *)pidfile); /* avoid warning */ in write_to_pidfile()
147 return pidfile; in write_to_pidfile()
256 char * pidfile; in server_main() local
263 pidfile = write_to_pidfile(); in server_main()
276 if (pidfile) { in server_main()
[all …]
/dports/sysutils/syslog-ng/syslog-ng-3.35.1/contrib/balabit-initscripts/
H A Dinit-functions170 pidfile=$1
174 if [ -f "$pidfile" ];then
192 pidfile=
195 pidfile=$2
212 if [ -f ${pidfile} ];then
231 pidfile=
247 pidfile=$2
275 pidfile=
278 pidfile=$2
306 rm -f ${pidfile}
[all …]
/dports/audio/lewton/lewton-0.10.2/cargo-crates/curl-sys-0.4.25/curl/tests/
H A Dftp.pm39 my $pidfile = $_[0];
42 if(-f $pidfile && -s $pidfile && open(PIDFH, "<$pidfile")) {
132 my $pidfile = $_[0];
135 my $pid = pidfromfile($pidfile);
144 unlink($pidfile) if($pid == pidfromfile($pidfile));
253 my $pidfile;
264 $pidfile = mainsockf_pidfilename($proto, $ipvnum, $idnum);
265 $pid = processexists($pidfile);
272 unlink($pidfile) if(-f $pidfile);
279 $pid = processexists($pidfile);
[all …]
/dports/graphics/mupdf/mupdf-1.18.0-source/thirdparty/curl/tests/
H A Dftp.pm39 my $pidfile = $_[0];
42 if(-f $pidfile && -s $pidfile && open(PIDFH, "<$pidfile")) {
132 my $pidfile = $_[0];
135 my $pid = pidfromfile($pidfile);
144 unlink($pidfile) if($pid == pidfromfile($pidfile));
253 my $pidfile;
264 $pidfile = mainsockf_pidfilename($proto, $ipvnum, $idnum);
265 $pid = processexists($pidfile);
272 unlink($pidfile) if(-f $pidfile);
279 $pid = processexists($pidfile);
[all …]
/dports/mail/enma/enma-1.2.0/enma/src/
H A Ddaemonize.c45 create_pidfile(const char *pidfile) in create_pidfile() argument
47 assert(NULL != pidfile); in create_pidfile()
86 remove_pidfile(const char *pidfile) in remove_pidfile() argument
88 assert(NULL != pidfile); in remove_pidfile()
91 if (0 == stat(pidfile, &st)) { in remove_pidfile()
92 if (-1 == unlink(pidfile)) { in remove_pidfile()
258 assert(NULL != pidfile); in daemonize_init()
271 if (!create_pidfile(pidfile)) { in daemonize_init()
292 daemonize_finally(const char *pidfile) in daemonize_finally() argument
294 assert(NULL != pidfile); in daemonize_finally()
[all …]
/dports/net-mgmt/zabbix3-java/zabbix-3.0.32/src/libs/zbxnix/
H A Dpid.c27 int create_pid_file(const char *pidfile) in create_pid_file() argument
40 if (0 == zbx_stat(pidfile, &buf)) in create_pid_file()
42 if (-1 == (fd = open(pidfile, O_WRONLY | O_APPEND))) in create_pid_file()
44 zbx_error("cannot open PID file [%s]: %s", pidfile, zbx_strerror(errno)); in create_pid_file()
52 pidfile, zbx_strerror(errno)); in create_pid_file()
60 if (NULL == (fpid = fopen(pidfile, "w"))) in create_pid_file()
62 zbx_error("cannot create PID file [%s]: %s", pidfile, zbx_strerror(errno)); in create_pid_file()
85 if (NULL == (fpid = fopen(pidfile, "r"))) in read_pid_file()
94 zbx_snprintf(error, max_error_len, "cannot retrieve PID from file [%s]", pidfile); in read_pid_file()
101 void drop_pid_file(const char *pidfile) in drop_pid_file() argument
[all …]
/dports/net-mgmt/zabbix3-frontend/zabbix-3.0.32/src/libs/zbxnix/
H A Dpid.c27 int create_pid_file(const char *pidfile) in create_pid_file() argument
40 if (0 == zbx_stat(pidfile, &buf)) in create_pid_file()
42 if (-1 == (fd = open(pidfile, O_WRONLY | O_APPEND))) in create_pid_file()
44 zbx_error("cannot open PID file [%s]: %s", pidfile, zbx_strerror(errno)); in create_pid_file()
52 pidfile, zbx_strerror(errno)); in create_pid_file()
60 if (NULL == (fpid = fopen(pidfile, "w"))) in create_pid_file()
62 zbx_error("cannot create PID file [%s]: %s", pidfile, zbx_strerror(errno)); in create_pid_file()
85 if (NULL == (fpid = fopen(pidfile, "r"))) in read_pid_file()
94 zbx_snprintf(error, max_error_len, "cannot retrieve PID from file [%s]", pidfile); in read_pid_file()
101 void drop_pid_file(const char *pidfile) in drop_pid_file() argument
[all …]
/dports/net-mgmt/zabbix3-proxy/zabbix-3.0.32/src/libs/zbxnix/
H A Dpid.c27 int create_pid_file(const char *pidfile) in create_pid_file() argument
40 if (0 == zbx_stat(pidfile, &buf)) in create_pid_file()
42 if (-1 == (fd = open(pidfile, O_WRONLY | O_APPEND))) in create_pid_file()
44 zbx_error("cannot open PID file [%s]: %s", pidfile, zbx_strerror(errno)); in create_pid_file()
52 pidfile, zbx_strerror(errno)); in create_pid_file()
60 if (NULL == (fpid = fopen(pidfile, "w"))) in create_pid_file()
62 zbx_error("cannot create PID file [%s]: %s", pidfile, zbx_strerror(errno)); in create_pid_file()
85 if (NULL == (fpid = fopen(pidfile, "r"))) in read_pid_file()
94 zbx_snprintf(error, max_error_len, "cannot retrieve PID from file [%s]", pidfile); in read_pid_file()
101 void drop_pid_file(const char *pidfile) in drop_pid_file() argument
[all …]
/dports/net-mgmt/zabbix3-server/zabbix-3.0.32/src/libs/zbxnix/
H A Dpid.c27 int create_pid_file(const char *pidfile) in create_pid_file() argument
40 if (0 == zbx_stat(pidfile, &buf)) in create_pid_file()
42 if (-1 == (fd = open(pidfile, O_WRONLY | O_APPEND))) in create_pid_file()
44 zbx_error("cannot open PID file [%s]: %s", pidfile, zbx_strerror(errno)); in create_pid_file()
52 pidfile, zbx_strerror(errno)); in create_pid_file()
60 if (NULL == (fpid = fopen(pidfile, "w"))) in create_pid_file()
62 zbx_error("cannot create PID file [%s]: %s", pidfile, zbx_strerror(errno)); in create_pid_file()
85 if (NULL == (fpid = fopen(pidfile, "r"))) in read_pid_file()
94 zbx_snprintf(error, max_error_len, "cannot retrieve PID from file [%s]", pidfile); in read_pid_file()
101 void drop_pid_file(const char *pidfile) in drop_pid_file() argument
[all …]
/dports/net-mgmt/zabbix3-agent/zabbix-3.0.32/src/libs/zbxnix/
H A Dpid.c27 int create_pid_file(const char *pidfile) in create_pid_file() argument
40 if (0 == zbx_stat(pidfile, &buf)) in create_pid_file()
42 if (-1 == (fd = open(pidfile, O_WRONLY | O_APPEND))) in create_pid_file()
44 zbx_error("cannot open PID file [%s]: %s", pidfile, zbx_strerror(errno)); in create_pid_file()
52 pidfile, zbx_strerror(errno)); in create_pid_file()
60 if (NULL == (fpid = fopen(pidfile, "w"))) in create_pid_file()
62 zbx_error("cannot create PID file [%s]: %s", pidfile, zbx_strerror(errno)); in create_pid_file()
85 if (NULL == (fpid = fopen(pidfile, "r"))) in read_pid_file()
94 zbx_snprintf(error, max_error_len, "cannot retrieve PID from file [%s]", pidfile); in read_pid_file()
101 void drop_pid_file(const char *pidfile) in drop_pid_file() argument
[all …]
/dports/net/samba412/samba-4.12.15/ctdb/tests/src/
H A Dpidfile_test.c29 static void test1(const char *pidfile) in test1() argument
41 ret = stat(pidfile, &st); in test1()
45 fp = fopen(pidfile, "r"); in test1()
54 ret = stat(pidfile, &st); in test1()
59 static void test2(const char *pidfile) in test2() argument
103 fp = fopen(pidfile, "r"); in test2()
123 ret = stat(pidfile, &st); in test2()
165 ret = stat(pidfile, &st); in test3()
170 ret = stat(pidfile, &st); in test3()
210 ret = stat(pidfile, &st); in test4()
[all …]
/dports/net-mgmt/carbonzipper/carbonzipper-0.74/vendor/github.com/facebookgo/pidfile/
H A Dpidfile_test.go37 pidfile.SetPidfilePath(p)
47 pidfile.SetPidfilePath(p)
53 pid, err := pidfile.Read()
64 pidfile.SetPidfilePath("")
66 err := pidfile.Write()
70 if !pidfile.IsNotConfigured(err) {
74 _, err = pidfile.Read()
78 if !pidfile.IsNotConfigured(err) {
85 if pidfile.IsNotConfigured(err) {
94 pidfile.SetPidfilePath(p)
[all …]
H A Dpidfile.go2 package pidfile package
19 pidfile = flag.String("pidfile", "", "If specified, write pid to file.") var
33 return *pidfile
38 *pidfile = p
44 if *pidfile == "" {
48 if err := os.MkdirAll(filepath.Dir(*pidfile), os.FileMode(0755)); err != nil {
52 file, err := atomicfile.New(*pidfile, os.FileMode(0644))
54 return fmt.Errorf("error opening pidfile %s: %s", *pidfile, err)
74 if *pidfile == "" {
78 d, err := ioutil.ReadFile(*pidfile)
[all …]
/dports/www/carbonapi/carbonapi-0.14.1/vendor/github.com/facebookgo/pidfile/
H A Dpidfile.go2 package pidfile package
19 pidfile = flag.String("pidfile", "", "If specified, write pid to file.") var
33 return *pidfile
38 *pidfile = p
44 if *pidfile == "" {
48 if err := os.MkdirAll(filepath.Dir(*pidfile), os.FileMode(0755)); err != nil {
52 file, err := atomicfile.New(*pidfile, os.FileMode(0644))
54 return fmt.Errorf("error opening pidfile %s: %s", *pidfile, err)
74 if *pidfile == "" {
78 d, err := ioutil.ReadFile(*pidfile)
[all …]
/dports/dns/knot3/knot-3.1.5/src/knot/common/
H A Dprocess.c42 return pidfile; in pid_filename()
109 char *pidfile = pid_filename(); in pid_check_and_create() local
110 pid_t pid = pid_read(pidfile); in pid_check_and_create()
115 free(pidfile); in pid_check_and_create()
126 int ret = pid_write(pidfile, pid); in pid_check_and_create()
130 free(pidfile); in pid_check_and_create()
133 free(pidfile); in pid_check_and_create()
140 char *pidfile = pid_filename(); in pid_cleanup() local
141 if (pidfile != NULL) { in pid_cleanup()
142 (void)unlink(pidfile); in pid_cleanup()
[all …]
/dports/dns/knot3-lib/knot-3.1.5/src/knot/common/
H A Dprocess.c42 return pidfile; in pid_filename()
109 char *pidfile = pid_filename(); in pid_check_and_create() local
110 pid_t pid = pid_read(pidfile); in pid_check_and_create()
115 free(pidfile); in pid_check_and_create()
126 int ret = pid_write(pidfile, pid); in pid_check_and_create()
130 free(pidfile); in pid_check_and_create()
133 free(pidfile); in pid_check_and_create()
140 char *pidfile = pid_filename(); in pid_cleanup() local
141 if (pidfile != NULL) { in pid_cleanup()
142 (void)unlink(pidfile); in pid_cleanup()
[all …]
/dports/security/silktools/silk-3.19.1/src/libsilk/
H A Dskdaemon.c29 char *pidfile; member
207 if (skdaemon->pidfile) { in daemonOptionsHandler()
248 char pidfile[PATH_MAX+1]; in daemonWritePid() local
256 if (!skdaemon->pidfile) { in daemonWritePid()
258 log_directory = sklogGetDirectory(pidfile, sizeof(pidfile)); in daemonWritePid()
264 len = strlen(pidfile); in daemonWritePid()
265 len2 = snprintf(&pidfile[len], sizeof(pidfile)-len, "/%s.pid", in daemonWritePid()
271 skdaemon->pidfile = strdup(pidfile); in daemonWritePid()
272 if (!skdaemon->pidfile) { in daemonWritePid()
407 free(skdaemon->pidfile); in skdaemonTeardown()
[all …]
/dports/devel/libvirt/libvirt-7.10.0/src/util/
H A Dvirpidfile.c55 int virPidFileWritePath(const char *pidfile, in virPidFileWritePath() argument
62 if ((fd = open(pidfile, in virPidFileWritePath()
91 g_autofree char *pidfile = NULL; in virPidFileWrite() local
153 g_autofree char *pidfile = NULL; in virPidFileRead() local
163 return virPidFileReadPath(pidfile, pid); in virPidFileRead()
291 g_autofree char *pidfile = NULL; in virPidFileReadIfAlive() local
320 g_autofree char *pidfile = NULL; in virPidFileDelete() local
328 return virPidFileDeletePath(pidfile); in virPidFileDelete()
419 g_autofree char *pidfile = NULL; in virPidFileAcquire() local
458 g_autofree char *pidfile = NULL; in virPidFileRelease() local
[all …]
/dports/sysutils/p5-Proc-PidUtil/Proc-PidUtil-0.09/
H A DPidUtil.pm80 my $pidfile = $path .'/'. $me . '.pid';
82 my $job = is_running($pidfile);
88 make_pidfile($pidfile);
101 my($pidfile) = @_;
104 -e $pidfile &&
105 -r $pidfile &&
106 open(PID,$pidfile);
127 my($pidfile,$pid) = @_;
130 return 0 unless open(PID,'>'.$pidfile);
146 my $pidfile = $path .'/'. $me . '.pid';
[all …]
/dports/devel/py-daemons/daemons-1.3.1/daemons/pid/
H A Dsimple.py32 with open(self.pidfile, "r") as pidfile:
36 pid = int(pidfile.read().strip())
66 if not os.path.isfile(self.pidfile):
70 LOG.exception("Failed to read pidfile {0}.".format(self.pidfile))
78 with open(self.pidfile, "w+") as pidfile:
80 pidfile.write("{0}\n".format(pidnum))
84 LOG.exception("Failed to write pidfile {0}).".format(self.pidfile))
92 os.remove(self.pidfile)
96 if not os.path.isfile(self.pidfile):
100 LOG.exception("Failed to clear pidfile {0}).".format(self.pidfile))
/dports/devel/sentry-cli/sentry-cli-1.71.0/cargo-crates/curl-sys-0.4.48+curl-7.79.1/curl/tests/
H A Dftp.pm77 my $pidfile = $_[0];
80 if(-f $pidfile && -s $pidfile && open(PIDFH, "<$pidfile")) {
204 my $pidfile = $_[0];
207 my $pid = pidfromfile($pidfile);
216 unlink($pidfile) if($pid == pidfromfile($pidfile));
325 my $pidfile;
336 $pidfile = mainsockf_pidfilename($proto, $ipvnum, $idnum);
337 $pid = processexists($pidfile);
344 unlink($pidfile) if(-f $pidfile);
351 $pid = processexists($pidfile);
[all …]
/dports/net/proby/proby-1.0.2/cargo-crates/curl-sys-0.4.34+curl-7.71.1/curl/tests/
H A Dftp.pm77 my $pidfile = $_[0];
80 if(-f $pidfile && -s $pidfile && open(PIDFH, "<$pidfile")) {
204 my $pidfile = $_[0];
207 my $pid = pidfromfile($pidfile);
216 unlink($pidfile) if($pid == pidfromfile($pidfile));
325 my $pidfile;
336 $pidfile = mainsockf_pidfilename($proto, $ipvnum, $idnum);
337 $pid = processexists($pidfile);
344 unlink($pidfile) if(-f $pidfile);
351 $pid = processexists($pidfile);
[all …]
/dports/devel/cargo-generate/cargo-generate-0.9.0/cargo-crates/curl-sys-0.4.41+curl-7.75.0/curl/tests/
H A Dftp.pm77 my $pidfile = $_[0];
80 if(-f $pidfile && -s $pidfile && open(PIDFH, "<$pidfile")) {
204 my $pidfile = $_[0];
207 my $pid = pidfromfile($pidfile);
216 unlink($pidfile) if($pid == pidfromfile($pidfile));
325 my $pidfile;
336 $pidfile = mainsockf_pidfilename($proto, $ipvnum, $idnum);
337 $pid = processexists($pidfile);
344 unlink($pidfile) if(-f $pidfile);
351 $pid = processexists($pidfile);
[all …]
/dports/devel/cargo-c/cargo-c-0.9.6+cargo-0.58/cargo-crates/curl-sys-0.4.51+curl-7.80.0/curl/tests/
H A Dftp.pm77 my $pidfile = $_[0];
80 if(-f $pidfile && -s $pidfile && open(PIDFH, "<$pidfile")) {
204 my $pidfile = $_[0];
207 my $pid = pidfromfile($pidfile);
216 unlink($pidfile) if($pid == pidfromfile($pidfile));
325 my $pidfile;
336 $pidfile = mainsockf_pidfilename($proto, $ipvnum, $idnum);
337 $pid = processexists($pidfile);
344 unlink($pidfile) if(-f $pidfile);
351 $pid = processexists($pidfile);
[all …]
/dports/lang/rust/rustc-1.58.1-src/vendor/curl-sys/curl/tests/
H A Dftp.pm77 my $pidfile = $_[0];
80 if(-f $pidfile && -s $pidfile && open(PIDFH, "<$pidfile")) {
204 my $pidfile = $_[0];
207 my $pid = pidfromfile($pidfile);
216 unlink($pidfile) if($pid == pidfromfile($pidfile));
325 my $pidfile;
336 $pidfile = mainsockf_pidfilename($proto, $ipvnum, $idnum);
337 $pid = processexists($pidfile);
344 unlink($pidfile) if(-f $pidfile);
351 $pid = processexists($pidfile);
[all …]

12345678910>>...185