Home
last modified time | relevance | path

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

12

/third_party/ltp/testcases/kernel/mce-test/kvm/host/
Dhost_run.sh89 pid_file=$HOST_DIR/pid_file
247 -monitor pty -serial pty -pidfile $pid_file > $host_start 2>&1 &
259 -monitor pty -serial pty -pidfile $pid_file > $host_start 2>&1 &
264 QEMU_PID=`cat $pid_file`
375 rm -f guest_tmp $host_start $monitor_console_output $serail_console_output $host_tmp $pid_file $mce…
/third_party/wpa_supplicant/wpa_supplicant-2.9/hostapd/
Dap_main.c383 static void hostapd_global_deinit(const char *pid_file, int eloop_initialized) in hostapd_global_deinit() argument
410 os_daemonize_terminate(pid_file); in hostapd_global_deinit()
415 const char *pid_file) in hostapd_global_run() argument
437 if (os_daemonize(pid_file)) { in hostapd_global_run()
646 char *pid_file = NULL; in ap_main() local
715 os_free(pid_file); in ap_main()
716 pid_file = os_rel2abs_path(optarg); in ap_main()
895 if (hostapd_global_run(&interfaces, daemonize, pid_file)) { in ap_main()
921 hostapd_global_deinit(pid_file, interfaces.eloop_initialized); in ap_main()
922 os_free(pid_file); in ap_main()
Dhostapd_cli.c37 static const char *pid_file = NULL; variable
1965 if (pid_file) in hostapd_cli_cleanup()
1966 os_daemonize_terminate(pid_file); in hostapd_cli_cleanup()
2046 pid_file = optarg; in main()
2107 if (daemonize && os_daemonize(pid_file) && eloop_sock_requeue()) in main()
/third_party/wpa_supplicant/wpa_supplicant-2.9/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.c221 int os_daemonize(const char *pid_file) in os_daemonize() argument
231 if (pid_file) { in os_daemonize()
232 FILE *f = fopen(pid_file, "w"); in os_daemonize()
244 void os_daemonize_terminate(const char *pid_file) in os_daemonize_terminate() argument
246 if (pid_file) in os_daemonize_terminate()
247 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.h152 int os_daemonize(const char *pid_file);
158 void os_daemonize_terminate(const char *pid_file);
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/hostapd/
Dap_main.c380 static void hostapd_global_deinit(const char *pid_file, int eloop_initialized) in hostapd_global_deinit() argument
407 os_daemonize_terminate(pid_file); in hostapd_global_deinit()
412 const char *pid_file) in hostapd_global_run() argument
434 if (os_daemonize(pid_file)) { in hostapd_global_run()
644 char *pid_file = NULL; in ap_main() local
716 os_free(pid_file); in ap_main()
717 pid_file = os_rel2abs_path(optarg); in ap_main()
896 if (hostapd_global_run(&interfaces, daemonize, pid_file)) { in ap_main()
925 hostapd_global_deinit(pid_file, interfaces.eloop_initialized); in ap_main()
926 os_free(pid_file); in ap_main()
Dhostapd_cli.c37 static const char *pid_file = NULL; variable
2022 if (pid_file) in hostapd_cli_cleanup()
2023 os_daemonize_terminate(pid_file); in hostapd_cli_cleanup()
2104 pid_file = optarg; in main()
2167 if (daemonize && os_daemonize(pid_file) && eloop_sock_requeue()) in main()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/utils/
Dos_internal.c104 int os_daemonize(const char *pid_file) in os_daemonize() argument
111 if (pid_file) { in os_daemonize()
112 FILE *f = fopen(pid_file, "w"); in os_daemonize()
123 void os_daemonize_terminate(const char *pid_file) in os_daemonize_terminate() argument
125 if (pid_file) in os_daemonize_terminate()
126 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.c227 int os_daemonize(const char *pid_file) in os_daemonize() argument
237 if (pid_file) { in os_daemonize()
238 FILE *f = fopen(pid_file, "w"); in os_daemonize()
250 void os_daemonize_terminate(const char *pid_file) in os_daemonize_terminate() argument
252 if (pid_file) in os_daemonize_terminate()
253 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.h152 int os_daemonize(const char *pid_file);
158 void os_daemonize_terminate(const char *pid_file);
/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant/
Dmain.c283 os_free(params.pid_file); in wpa_main()
284 params.pid_file = os_rel2abs_path(optarg); in wpa_main()
408 os_free(params.pid_file); in wpa_main()
Dwpa_priv.c1201 char *pid_file = NULL; in main() local
1230 pid_file = os_rel2abs_path(optarg); in main()
1259 if (daemonize && os_daemonize(pid_file) && eloop_sock_requeue()) in main()
1279 os_daemonize_terminate(pid_file); in main()
1280 os_free(pid_file); in main()
Dwpa_cli.c53 static const char *pid_file = NULL; variable
4583 if (pid_file) in wpa_cli_cleanup()
4584 os_daemonize_terminate(pid_file); in wpa_cli_cleanup()
4700 pid_file = optarg; in main()
4749 if (daemonize && os_daemonize(pid_file) && eloop_sock_requeue()) in main()
Dwpa_supplicant.c4483 static int wpa_supplicant_daemon(const char *pid_file) argument
4486 return os_daemonize(pid_file);
6455 if (params->pid_file)
6456 global->params.pid_file = os_strdup(params->pid_file);
6556 (wpa_supplicant_daemon(global->params.pid_file) ||
6625 if (global->params.pid_file) {
6626 os_daemonize_terminate(global->params.pid_file);
6627 os_free(global->params.pid_file);
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/
Dmain.c283 os_free(params.pid_file); in wpa_main()
284 params.pid_file = os_rel2abs_path(optarg); in wpa_main()
408 os_free(params.pid_file); in wpa_main()
Dwpa_priv.c1209 char *pid_file = NULL; in main() local
1238 pid_file = os_rel2abs_path(optarg); in main()
1267 if (daemonize && os_daemonize(pid_file) && eloop_sock_requeue()) in main()
1287 os_daemonize_terminate(pid_file); in main()
1288 os_free(pid_file); in main()
Dwpa_cli.c53 static const char *pid_file = NULL; variable
4883 if (pid_file) in wpa_cli_cleanup()
4884 os_daemonize_terminate(pid_file); in wpa_cli_cleanup()
5005 pid_file = optarg; in main()
5072 if (daemonize && os_daemonize(pid_file) && eloop_sock_requeue()) in main()
Dwpa_supplicant.c5385 static int wpa_supplicant_daemon(const char *pid_file) argument
5388 return os_daemonize(pid_file);
7399 if (params->pid_file)
7400 global->params.pid_file = os_strdup(params->pid_file);
7500 (wpa_supplicant_daemon(global->params.pid_file) ||
7569 if (global->params.pid_file) {
7570 os_daemonize_terminate(global->params.pid_file);
7571 os_free(global->params.pid_file);
/third_party/libsoup/tests/
Dtest-utils.c153 char *server_root, *cwd, *pid_file; in apache_cmd() local
166 pid_file = g_strdup_printf ("PidFile %s/httpd.pid", cwd); in apache_cmd()
180 g_ptr_array_add (argv, pid_file); in apache_cmd()
193 g_free (pid_file); in apache_cmd()
/third_party/nghttp2/src/
Dshrpx.cc305 auto &pid_file = config->pid_file; in save_pid() local
307 auto len = config->pid_file.size() + SUFFIX.size(); in save_pid()
311 p = std::copy(std::begin(pid_file), std::end(pid_file), p); in save_pid()
320 LOG(ERROR) << "Could not save PID to file " << pid_file << ": " in save_pid()
329 LOG(ERROR) << "Could not save PID to file " << pid_file << ": " in save_pid()
336 LOG(ERROR) << "Could not save PID to file " << pid_file << ": " in save_pid()
343 if (rename(temp_path, pid_file.c_str()) == -1) { in save_pid()
345 LOG(ERROR) << "Could not save PID to file " << pid_file << ": " in save_pid()
354 if (chown(pid_file.c_str(), config->uid, config->gid) == -1) { in save_pid()
356 LOG(WARN) << "Changing owner of pid file " << pid_file << " failed: " in save_pid()
[all …]

12