Searched defs:status (Results 1 - 20 of 20) sorted by relevance

/lxc/src/lxc/
H A Derror.c36 * 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 Dattach.c177 /* /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 Dcriu.c783 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 Dstart.c578 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 Dutils.c295 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 Dlxccontainer.c615 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 Ddestroytest.c33 int status, ret; local
47 ret = waitpid(pid, &status, 0);
56 if (!WIFEXITED(status)) { // did not exit normally
60 return WEXITSTATUS(status);
H A Dsaveconfig.c33 int status, ret; local
47 ret = waitpid(pid, &status, 0);
56 if (!WIFEXITED(status)) { // did not exit normally
60 return WEXITSTATUS(status);
H A Dreboot.c49 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 Dstartone.c35 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 Dlocktests.c35 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 Dcontainertests.c35 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 Dlxc_checkpoint.c183 int status; local
188 if (waitpid(-1, &status, 0) < 0)
191 return WIFEXITED(status) && WEXITSTATUS(status) == 0;
H A Dlxc_init.c204 int status; local
231 waited_pid = wait(&status);
253 err = lxc_error_set_and_log(waited_pid, status);
H A Dlxc_unshare.c156 int opt, status; local
273 if (waitpid(pid, &status, 0) < 0) {
279 exit(lxc_error_set_and_log(pid, status));
H A Dlxc_usernsexec.c270 int status; local
379 if ((ret = waitpid(pid, &status, __WALL)) < 0) {
384 exit(WEXITSTATUS(status));
H A Dlxc_ls.c252 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 Dlxclvm.c185 int ret, len, status, start=0; local
205 status = lxc_pclose(f);
207 if (ret || WEXITSTATUS(status))
H A Dlxcnbd.c213 int status; local
216 while (waitpid(-1, &status, WNOHANG) > 0) {
217 if ((WIFEXITED(status) && WEXITSTATUS(status) != 0) ||
218 WIFSIGNALED(status)) {
H A Dbdev.c643 int status; local
650 wait(&status);
654 wait(&status);
657 wait(&status);

Completed in 50 milliseconds