/xen-4.10.0-shim-comet/tools/blktap2/control/ |
A D | tap-ctl.c | 106 pid_t pid; in tap_cli_list() local 112 pid = -1; in tap_cli_list() 147 if (pid >= 0 && entry->pid != pid) in tap_cli_list() 302 int c, pid, minor; in tap_cli_destroy() local 304 pid = -1; in tap_cli_destroy() 382 pid = -1; in tap_cli_attach() 423 pid = -1; in tap_cli_detach() 464 pid = -1; in tap_cli_close() 509 pid = -1; in tap_cli_pause() 551 pid = -1; in tap_cli_unpause() [all …]
|
A D | tap-ctl-spawn.c | 103 pid_t pid; in tap_ctl_wait() local 106 pid = waitpid(child, &status, 0); in tap_ctl_wait() 107 if (pid < 0) { in tap_ctl_wait()
|
A D | tap-ctl-list.c | 92 entry->pid = tap_pid; in init_list() 230 pid_t pid; member 282 tap->pid = tap_ctl_get_pid(tap->id); in _tap_ctl_find_tapdisks() 283 if (tap->pid < 0) in _tap_ctl_find_tapdisks() 420 err = init_list(*_entry++, tap->id, tap->pid, -1, -1, NULL); in _tap_list_join3() 429 tap->id, tap->pid, in _tap_list_join3()
|
/xen-4.10.0-shim-comet/tools/hotplug/Linux/init.d/ |
A D | xencommons.in | 29 XENCONSOLED_PIDFILE=@XEN_RUN_DIR@/xenconsoled.pid 30 QEMU_PIDFILE=@XEN_RUN_DIR@/qemu-dom0.pid 70 ${sbindir}/xenconsoled --pid-file=$XENCONSOLED_PIDFILE $XENCONSOLED_ARGS 79 if read 2>/dev/null <$XENCONSOLED_PIDFILE pid; then 80 kill $pid 81 while kill -9 $pid >/dev/null 2>&1; do sleep 1; done 86 if read 2>/dev/null <$QEMU_PIDFILE pid; then 87 kill $pid 88 while kill -9 $pid >/dev/null 2>&1; do sleep 1; done 100 test -f @XEN_RUN_DIR@/xenstored.pid
|
A D | xendriverdomain.in | 27 XLDEVD_PIDFILE=@XEN_RUN_DIR@/xldevd.pid 56 if read 2>/dev/null <$XLDEVD_PIDFILE pid; then 57 kill $pid 58 while kill -9 $pid >/dev/null 2>&1; do sleep 1; done
|
/xen-4.10.0-shim-comet/tools/libxl/ |
A D | libxl_fork.c | 453 pid_t pid = ch->pid; in childproc_reaped_ours() local 455 ch->pid = -1; in childproc_reaped_ours() 456 ch->callback(egc, ch, pid, status); in childproc_reaped_ours() 465 if (ch->pid == pid) in childproc_reaped() 485 int rc = childproc_reaped(egc, pid, status); in libxl_childproc_reaped() 569 if (pid == 0 || pid == -1 /* ECHILD */) in sigchld_selfpipe_handler() 607 pid_t pid = in libxl__ev_child_fork() local 611 if (pid == -1) { in libxl__ev_child_fork() 617 if (!pid) { in libxl__ev_child_fork() 627 ch->pid = pid; in libxl__ev_child_fork() [all …]
|
A D | libxl_exec.c | 121 " exited status zero", what, (unsigned long)pid); in libxl_report_child_exitstatus() 128 " fatal signal %s%s", what, (unsigned long)pid, in libxl_report_child_exitstatus() 132 " fatal signal number %d%s", what, (unsigned long)pid, in libxl_report_child_exitstatus() 136 " wait status 0x%x", what, (unsigned long)pid, status); in libxl_report_child_exitstatus() 147 r = libxl__xs_printf(gc, XBT_NULL, spawn->pidpath, "%d", pid); in libxl__spawn_record_pid() 262 pid_t pid, int status); 363 pid_t child = ss->mid.pid; in spawn_detach() 403 pid_t pid, int status) in spawn_middle_death() argument 425 ss->what, (unsigned long)pid); in spawn_middle_death() 428 ss->what, (unsigned long)pid, status); in spawn_middle_death() [all …]
|
A D | libxl_convert_callout.c | 28 pid_t pid, int status); 68 pid_t pid = libxl__ev_child_fork(gc, &chs->child, helper_exited); in libxl__convert_legacy_stream() local 69 if (!pid) { in libxl__convert_legacy_stream() 131 libxl__kill(gc, chs->child.pid, SIGTERM, "conversion helper"); in libxl__conversion_helper_abort() 146 pid_t pid, int status) in helper_exited() argument 154 "conversion helper", pid, status); in helper_exited()
|
A D | libxl_colo.h | 25 int pid = -1; \ 28 pid = libxl__ev_child_fork(gc, child, callback); \ 29 if (pid == -1) { \ 34 if (!pid) { \
|
A D | libxl_aoutils.c | 412 pid_t pid, int status) { in openpty_exited() argument 449 pid_t pid = -1; in libxl__openptys() local 466 if (pid == -1) { in libxl__openptys() 471 if (!pid) { in libxl__openptys() 541 if (kill(aes->child.pid, SIGKILL)) { in async_exec_timeout() 551 pid_t pid, int status) in async_exec_done() argument 575 pid_t pid; in libxl__async_exec_start() local 597 if (pid == -1) { in libxl__async_exec_start() 602 if (!pid) { in libxl__async_exec_start() 624 int r = kill(pid, sig); in libxl__kill() [all …]
|
A D | libxl_save_callout.c | 39 pid_t pid, int status); 212 pid_t pid = libxl__ev_child_fork(gc, &shs->child, helper_exited); in run_helper() local 213 if (!pid) { in run_helper() 264 libxl__kill(gc, shs->child.pid, SIGKILL, "save/restore helper"); in helper_failed() 280 libxl__kill(gc, shs->child.pid, SIGTERM, "save/restore helper"); in helper_stop() 323 pid_t pid, int status) in helper_exited() argument 335 libxl_report_child_exitstatus(CTX, XTL_ERROR, what, pid, status); in helper_exited()
|
A D | libxl_bootloader.c | 39 pid_t pid, int status); 301 r = kill(bl->child.pid, SIGTERM); in bootloader_stop() 303 rc ? "after failure, " : "", (unsigned long)bl->child.pid); in bootloader_stop() 561 pid_t pid = libxl__ev_child_fork(gc, &bl->child, bootloader_finished); in bootloader_gotptys() local 562 if (pid == -1) { in bootloader_gotptys() 567 if (!pid) { in bootloader_gotptys() 636 pid_t pid, int status) in bootloader_finished() argument 651 pid, status); in bootloader_finished()
|
/xen-4.10.0-shim-comet/tools/xl/ |
A D | xl.c | 221 assert(!ch->pid); in xl_fork() 225 ch->pid = fork(); in xl_fork() 226 if (ch->pid == -1) { in xl_fork() 231 if (!ch->pid) { in xl_fork() 234 children[i].pid = 0; in xl_fork() 237 return ch->pid; in xl_fork() 243 pid_t got = ch->pid; in xl_waitpid() 247 ch->pid = 0; in xl_waitpid() 255 ch->pid = 0; in xl_waitpid() 264 return ch->pid; in xl_child_pid() [all …]
|
A D | xl_utils.c | 290 char *pid = NULL; in do_daemonize() local 297 if (asprintf(&pid, "%ld\n", (long)getpid()) == -1) { in do_daemonize() 302 if (write(fd, pid, strlen(pid)) < 0) { in do_daemonize() 312 free(pid); in do_daemonize()
|
/xen-4.10.0-shim-comet/tools/console/daemon/ |
A D | utils.c | 48 pid_t pid; in daemonize() local 54 if ((pid = fork()) > 0) { in daemonize() 56 } else if (pid == -1) { in daemonize() 62 if ((pid = fork()) > 0) { in daemonize() 64 } else if (pid == -1) { in daemonize()
|
/xen-4.10.0-shim-comet/tools/xenstore/ |
A D | xenstored_posix.c | 54 pid_t pid; in daemonize() local 57 if ((pid = fork()) < 0) in daemonize() 59 if (pid != 0) in daemonize() 66 if ((pid = fork()) < 0) in daemonize() 68 if (pid != 0) in daemonize()
|
A D | xenstored_solaris.c | 78 pid_t pid; in cred() local 86 pid = ucred_getpid(ucred); in cred() 89 return (pid); in cred()
|
/xen-4.10.0-shim-comet/tools/hotplug/Linux/ |
A D | block-tap | 74 pid=*) 75 pid=$(remove_label $param "pid=") 83 if [ -z "$pid" ] || [ -z "$minor" ]; then 100 do_or_die tap-ctl destroy -p ${pid} -m ${minor} > /dev/null
|
A D | launch-xenstore.in | 23 test -f @XEN_RUN_DIR@/xenstored.pid 65 $XENSTORED --pid-file @XEN_RUN_DIR@/xenstored.pid $XENSTORED_ARGS
|
/xen-4.10.0-shim-comet/tools/console/testsuite/ |
A D | procpipe.c | 49 pid_t pid; in exec() local 51 pid = fork(); in exec() 52 if (pid == 0) { in exec() 61 return pid; in exec()
|
/xen-4.10.0-shim-comet/docs/misc/ |
A D | pvrdtscp.c | 243 pid_t pid; in main() local 251 pid = fork(); in main() 252 if (pid == -1) { in main() 256 else if (pid == 0) { /* child */ in main() 260 waitpid(pid,&status,0); in main()
|
/xen-4.10.0-shim-comet/tools/blktap2/drivers/ |
A D | lock.c | 115 int pid = (int)getpid(); in NFSnormalizedStatTime() local 121 srandom((int)time(0) ^ pid); in NFSnormalizedStatTime() 779 int count, pid, time; in test_file() local 788 fscanf(fptr, "%d %d %d\n", &count, &pid, &time); in test_file() 791 prev_count, count, pid, time); in test_file() 799 int pid = getpid(); in random_locks() local 812 srandom((int)time(0) ^ pid); in random_locks() 814 LOG("pid: %d using file %s\n", pid, fn); in random_locks() 815 sprintf(uuid, "%08d", pid); in random_locks() 826 pid, fn, errno); in random_locks() [all …]
|
/xen-4.10.0-shim-comet/tools/hotplug/Linux/systemd/ |
A D | xen-qemu-dom0-disk-backend.service.in | 11 PIDFile=@XEN_RUN_DIR@/qemu-dom0.pid 18 -pidfile @XEN_RUN_DIR@/qemu-dom0.pid
|
/xen-4.10.0-shim-comet/tools/xenpmd/ |
A D | xenpmd.c | 474 pid_t pid; in daemonize() local 476 if ( (pid = fork()) < 0 ) in daemonize() 479 if ( pid != 0 ) in daemonize() 484 if ( (pid = fork()) < 0 ) in daemonize() 487 if ( pid != 0 ) in daemonize()
|
/xen-4.10.0-shim-comet/tools/ocaml/xenstored/ |
A D | oxenstored.conf.in | 3 # Where the pid file is stored 4 pid-file = @XEN_RUN_DIR@/xenstored.pid
|