Home
last modified time | relevance | path

Searched refs:pid_file (Results 1 – 25 of 29) sorted by relevance

12

/external/autotest/client/common_lib/
Dpidfile.py8 self.pid_file = None
13 self.pid_file = open(self.path, "w")
14 self.pid_file.write("%s\n" % os.getpid())
15 self.pid_file.flush()
20 if not self.pid_file:
22 pid_file = self.pid_file
23 self.pid_file = None
25 pid_file.write("%s\n" % encoded_exit_code)
26 pid_file.write("%s\n" % self.num_tests_failed)
27 pid_file.close()
/external/ipsec-tools/src/racoon/
Dsession.c123 char pid_file[MAXPATHLEN]; in session() local
158 strlcpy(pid_file, _PATH_VARRUN "racoon.pid", MAXPATHLEN); in session()
160 strlcpy(pid_file, lcconf->pathinfo[LC_PATHTYPE_PIDFILE], MAXPATHLEN); in session()
162 strlcat(pid_file, _PATH_VARRUN, MAXPATHLEN); in session()
163 strlcat(pid_file, lcconf->pathinfo[LC_PATHTYPE_PIDFILE], MAXPATHLEN); in session()
165 fp = fopen(pid_file, "w"); in session()
177 "cannot open %s", pid_file); in session()
Dmain.c283 const char *pid_file = _PATH_VARRUN "racoon.pid";
285 (void) unlink(pid_file);
/external/wpa_supplicant_8/hostapd/
Dmain.c360 static void hostapd_global_deinit(const char *pid_file) in hostapd_global_deinit() argument
386 os_daemonize_terminate(pid_file); in hostapd_global_deinit()
391 const char *pid_file) in hostapd_global_run() argument
413 if (os_daemonize(pid_file)) { in hostapd_global_run()
579 char *pid_file = NULL; in main() local
630 os_free(pid_file); in main()
631 pid_file = os_rel2abs_path(optarg); in main()
790 if (hostapd_global_run(&interfaces, daemonize, pid_file)) { in main()
811 hostapd_global_deinit(pid_file); in main()
812 os_free(pid_file); in main()
Dhostapd_cli.c104 static const char *pid_file = NULL; variable
1374 if (pid_file) in hostapd_cli_cleanup()
1375 os_daemonize_terminate(pid_file); in hostapd_cli_cleanup()
1455 pid_file = optarg; in main()
1525 if (daemonize && os_daemonize(pid_file) && eloop_sock_requeue()) in main()
/external/chromium-trace/catapult/telemetry/telemetry/internal/platform/profiler/
Dtcmalloc_heap_profiler.py69 'browser.pid'), 'w') as pid_file:
70 pid_file.write(str(self._browser_backend.pid).rjust(5, '0'))
97 'browser.pid'), 'w') as pid_file:
98 pid_file.write(str(self._browser_backend.pid))
/external/autotest/client/cros/
Dnetwork_chroot.py176 def get_pid_file(self, pid_file, missing_ok=False): argument
188 chroot_pid_file = self.chroot_path(pid_file)
199 def kill_pid_file(self, pid_file, missing_ok=False): argument
208 pid = self.get_pid_file(pid_file, missing_ok=missing_ok)
/external/wpa_supplicant_8/src/utils/
Dos_internal.c98 int os_daemonize(const char *pid_file) in os_daemonize() argument
105 if (pid_file) { in os_daemonize()
106 FILE *f = fopen(pid_file, "w"); in os_daemonize()
117 void os_daemonize_terminate(const char *pid_file) in os_daemonize_terminate() argument
119 if (pid_file) in os_daemonize_terminate()
120 unlink(pid_file); in os_daemonize_terminate()
Dos_none.c47 int os_daemonize(const char *pid_file) in os_daemonize() argument
53 void os_daemonize_terminate(const char *pid_file) in os_daemonize_terminate() argument
Dos_unix.c218 int os_daemonize(const char *pid_file) in os_daemonize() argument
228 if (pid_file) { in os_daemonize()
229 FILE *f = fopen(pid_file, "w"); in os_daemonize()
241 void os_daemonize_terminate(const char *pid_file) in os_daemonize_terminate() argument
243 if (pid_file) in os_daemonize_terminate()
244 unlink(pid_file); in os_daemonize_terminate()
Dos_win32.c120 int os_daemonize(const char *pid_file) in os_daemonize() argument
127 void os_daemonize_terminate(const char *pid_file) in os_daemonize_terminate() argument
Dos.h151 int os_daemonize(const char *pid_file);
157 void os_daemonize_terminate(const char *pid_file);
/external/chromium-trace/catapult/devil/devil/android/
Dforwarder.py263 with os.fdopen(fd, 'r+') as pid_file:
264 pid_with_start_time = pid_file.readline()
271 pid_file.seek(0)
272 pid_file.write(
274 pid_file.truncate()
/external/autotest/site_utils/chromeos_proxy/
Dswarming_bots.py119 self.pid_file = os.path.join(self.bot_dir, self.PID_FILE)
132 with open(self.pid_file, 'w') as f:
139 if os.path.exists(self.pid_file):
140 os.remove(self.pid_file)
170 if os.path.exists(self.pid_file):
171 with open(self.pid_file) as f:
/external/wpa_supplicant_8/wpa_supplicant/
Dmain.c279 os_free(params.pid_file); in main()
280 params.pid_file = os_rel2abs_path(optarg); in main()
404 os_free(params.pid_file); in main()
Dwpa_priv.c1116 char *pid_file = NULL; in main() local
1145 pid_file = os_rel2abs_path(optarg); in main()
1174 if (daemonize && os_daemonize(pid_file) && eloop_sock_requeue()) in main()
1194 os_daemonize_terminate(pid_file); in main()
1195 os_free(pid_file); in main()
/external/libbrillo/brillo/
Dprocess.h147 virtual bool ResetPidByFile(const std::string& pid_file) = 0;
185 virtual bool ResetPidByFile(const std::string& pid_file);
Dprocess.cc394 bool ProcessImpl::ResetPidByFile(const std::string& pid_file) { in ResetPidByFile() argument
396 if (!base::ReadFileToString(base::FilePath(pid_file), &contents)) { in ResetPidByFile()
397 LOG(ERROR) << "Could not read pid file" << pid_file; in ResetPidByFile()
Dprocess_mock.h40 MOCK_METHOD1(ResetPidByFile, bool(const std::string& pid_file));
/external/v8/build/android/
Dlighttpd_server.py61 self.pid_file = self._Mktmp('pid_file')
102 assert int(open(self.pid_file, 'r').read()) == self.process.pid
/external/fio/
Dinit.c1944 void *pid_file = NULL; in parse_cmd_line() local
2211 if (pid_file) in parse_cmd_line()
2212 free(pid_file); in parse_cmd_line()
2213 pid_file = strdup(optarg); in parse_cmd_line()
2324 return fio_start_server(pid_file); in parse_cmd_line()
2325 else if (pid_file) in parse_cmd_line()
2326 free(pid_file); in parse_cmd_line()
2344 if (pid_file) in parse_cmd_line()
2345 free(pid_file); in parse_cmd_line()
/external/openssh/
Dservconf.h71 char *pid_file; /* Where to put our pid */ member
Dsshd.c1277 if (options.pid_file != NULL)
1278 unlink(options.pid_file);
2030 if (options.pid_file != NULL && !debug_flag) {
2031 FILE *f = fopen(options.pid_file, "w");
2035 options.pid_file, strerror(errno));
Dservconf.c92 options->pid_file = NULL; in initialize_server_options()
222 if (options->pid_file == NULL) in fill_default_server_options()
223 options->pid_file = xstrdup(_PATH_SSH_DAEMON_PID_FILE); in fill_default_server_options()
369 CLEAR_ON_NONE(options->pid_file); in fill_default_server_options()
1145 charptr = &options->pid_file; in process_server_config_line()
2291 dump_cfg_string(sPidFile, o->pid_file); in dump_config()
/external/minijail/
Dlibminijail.c112 int pid_file:1; member
153 j->flags.pid_file = 0; in minijail_preenter()
535 j->flags.pid_file = 1; in minijail_write_pid_file()
1789 if (j->flags.pid_file) in minijail_run_internal()

12