Home
last modified time | relevance | path

Searched refs:pid_file (Results 1 – 25 of 28) 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_standard/hostapd/
Dap_main.c390 static void hostapd_global_deinit(const char *pid_file, int eloop_initialized) in hostapd_global_deinit() argument
417 os_daemonize_terminate(pid_file); in hostapd_global_deinit()
422 const char *pid_file) in hostapd_global_run() argument
444 if (os_daemonize(pid_file)) { in hostapd_global_run()
654 char *pid_file = NULL; in ap_main() local
729 os_free(pid_file); in ap_main()
730 pid_file = os_rel2abs_path(optarg); in ap_main()
910 if (hostapd_global_run(&interfaces, daemonize, pid_file)) { in ap_main()
939 hostapd_global_deinit(pid_file, interfaces.eloop_initialized); in ap_main()
940 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/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_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_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_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/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);
Dwpa_supplicant_i.h143 char *pid_file; member
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/
Dmain.c287 os_free(params.pid_file); in wpa_main()
288 params.pid_file = os_rel2abs_path(optarg); in wpa_main()
412 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.c56 static const char *pid_file = NULL; variable
5117 if (pid_file) in wpa_cli_cleanup()
5118 os_daemonize_terminate(pid_file); in wpa_cli_cleanup()
5239 pid_file = optarg; in main()
5306 if (daemonize && os_daemonize(pid_file) && eloop_sock_requeue()) in main()
Dwpa_supplicant.c5464 static int wpa_supplicant_daemon(const char *pid_file) argument
5467 return os_daemonize(pid_file);
7556 if (params->pid_file)
7557 global->params.pid_file = os_strdup(params->pid_file);
7659 (wpa_supplicant_daemon(global->params.pid_file) ||
7728 if (global->params.pid_file) {
7729 os_daemonize_terminate(global->params.pid_file);
7730 os_free(global->params.pid_file);
/third_party/nghttp2/src/
Dshrpx.cc396 auto &pid_file = config->pid_file; in save_pid() local
398 auto len = config->pid_file.size() + SUFFIX.size(); in save_pid()
402 p = std::copy(std::begin(pid_file), std::end(pid_file), p); in save_pid()
411 LOG(ERROR) << "Could not save PID to file " << pid_file << ": " in save_pid()
420 LOG(ERROR) << "Could not save PID to file " << pid_file << ": " in save_pid()
427 LOG(ERROR) << "Could not save PID to file " << pid_file << ": " in save_pid()
434 if (rename(temp_path, pid_file.c_str()) == -1) { in save_pid()
436 LOG(ERROR) << "Could not save PID to file " << pid_file << ": " in save_pid()
445 if (chown(pid_file.c_str(), config->uid, config->gid) == -1) { in save_pid()
447 LOG(WARN) << "Changing owner of pid file " << pid_file << " failed: " in save_pid()
[all …]

12