/lxc/src/lxc/ |
H A D | error.c | 36 * the reported status to an exit code as detailed here: 42 extern int lxc_error_set_and_log(int pid, int status) argument 46 if (WIFEXITED(status)) { 47 ret = WEXITSTATUS(status); 52 if (WIFSIGNALED(status)) { 53 int signal = WTERMSIG(status);
|
H A D | attach.c | 177 /* /proc/pid-to-str/status\0 = (5 + 21 + 7 + 1) */ 190 ret = snprintf(proc_fn, __PROC_STATUS_LEN, "/proc/%d/status", pid); 489 int status; local 550 if (waitpid(pid, &status, 0) < 0) { 561 if (!WIFEXITED(status)) 564 if (WEXITSTATUS(status) != 0) 622 snprintf(proc_fn, __PROC_STATUS_LEN, "/proc/%d/status", 1); 729 int ret, status; local 867 status = 0; 868 ret = lxc_write_nointr(ipc_sockets[0], &status, sizeo 1072 int status; local [all...] |
H A D | criu.c | 783 int status, fd; local 904 pid_t w = waitpid(pid, &status, 0); 910 if (WIFEXITED(status)) { 913 if (WEXITSTATUS(status)) { 926 ERROR("criu process exited %d, output:\n%s", WEXITSTATUS(status), buf); 954 ERROR("CRIU was killed with signal %d", WTERMSIG(status)); 960 ret = write(status_pipe, &status, sizeof(status)); 964 if (sizeof(status) != ret) { 965 SYSERROR("failed to write all of status"); 1110 int status; local 1183 int status, nread; local [all...] |
H A D | start.c | 578 int ret, status; local 583 while ((ret = waitpid(-1, &status, 0)) > 0) { 612 int status; local 646 if (wait(&status) < 0) { 651 if (WEXITSTATUS(status) != 1) 1305 int status; local 1370 while (waitpid(handler->pid, &status, 0) < 0 && errno == EINTR) 1377 if (WIFSIGNALED(status)) { 1378 switch(WTERMSIG(status)) { 1390 DEBUG("Unknown exit status fo [all...] |
H A D | utils.c | 295 int status, ret; local 298 ret = waitpid(pid, &status, 0); 306 if (!WIFEXITED(status) || WEXITSTATUS(status) != 0) 313 int status, ret; local 316 ret = waitpid(pid, &status, 0); 324 return status; 1902 /* /proc/pid-to-str/status\0 = (5 + 21 + 7 + 1) */ 1913 char status[__PROC_STATUS_LEN]; local 1915 ret = snprintf(status, __PROC_STATUS_LE [all...] |
H A D | lxccontainer.c | 615 int timeout = 5, ret, status; local 621 ret = waitpid(pid, &status, 0); 622 if (ret == -1 || !WIFEXITED(status) || WEXITSTATUS(status) != 0)
|
/lxc/src/tests/ |
H A D | destroytest.c | 33 int status, ret; local 47 ret = waitpid(pid, &status, 0); 56 if (!WIFEXITED(status)) { // did not exit normally 60 return WEXITSTATUS(status);
|
H A D | saveconfig.c | 33 int status, ret; local 47 ret = waitpid(pid, &status, 0); 56 if (!WIFEXITED(status)) { // did not exit normally 60 return WEXITSTATUS(status);
|
H A D | reboot.c | 49 int status; local 58 if (wait(&status) < 0) { 63 if (!WIFSIGNALED(status)) { 69 if (WTERMSIG(status) != sig) { 98 int status; local 105 status = have_reboot_patch(); 106 if (status != 0) { 111 status = test_reboot(LINUX_REBOOT_CMD_CAD_ON, -1); 112 if (status >= 0) { 118 status [all...] |
H A D | startone.c | 35 int status, ret; local 49 ret = waitpid(pid, &status, 0); 58 if (!WIFEXITED(status)) { // did not exit normally 62 return WEXITSTATUS(status); 67 int status, ret; local 81 ret = waitpid(pid, &status, 0); 90 if (!WIFEXITED(status)) { // did not exit normally 94 return WEXITSTATUS(status);
|
H A D | locktests.c | 35 int ret, status; local 74 ret = waitpid(pid, &status, WNOHANG); 76 if (WIFEXITED(status)) { 78 WEXITSTATUS(status)); 79 if (WEXITSTATUS(status) == 0) 89 wait(&status);
|
H A D | containertests.c | 35 int status, ret; local 49 ret = waitpid(pid, &status, 0); 58 if (!WIFEXITED(status)) { // did not exit normally 62 return WEXITSTATUS(status); 67 int status, ret; local 81 ret = waitpid(pid, &status, 0); 90 if (!WIFEXITED(status)) { // did not exit normally 94 return WEXITSTATUS(status);
|
/lxc/src/lxc/tools/ |
H A D | lxc_checkpoint.c | 183 int status; local 188 if (waitpid(-1, &status, 0) < 0) 191 return WIFEXITED(status) && WEXITSTATUS(status) == 0;
|
H A D | lxc_init.c | 204 int status; local 231 waited_pid = wait(&status); 253 err = lxc_error_set_and_log(waited_pid, status);
|
H A D | lxc_unshare.c | 156 int opt, status; local 273 if (waitpid(pid, &status, 0) < 0) { 279 exit(lxc_error_set_and_log(pid, status));
|
H A D | lxc_usernsexec.c | 270 int status; local 379 if ((ret = waitpid(pid, &status, __WALL)) < 0) { 384 exit(WEXITSTATUS(status));
|
H A D | lxc_ls.c | 252 int status = ls_get(&ls_arr, &ls_size, &my_args, "", NULL, 0, &(char *){NULL}, 0, grps, ngrps); local 253 if (!ls_arr && status == 0) 256 else if (!ls_arr || status == -1)
|
/lxc/src/lxc/bdev/ |
H A D | lxclvm.c | 185 int ret, len, status, start=0; local 205 status = lxc_pclose(f); 207 if (ret || WEXITSTATUS(status))
|
H A D | lxcnbd.c | 213 int status; local 216 while (waitpid(-1, &status, WNOHANG) > 0) { 217 if ((WIFEXITED(status) && WEXITSTATUS(status) != 0) || 218 WIFSIGNALED(status)) {
|
H A D | bdev.c | 643 int status; local 650 wait(&status); 654 wait(&status); 657 wait(&status);
|