Lines Matching refs:ret
22 int ret = system(EXE_NAME); in main() local
23 if (ret != 0) in main()
27 ret = system(NULL); in main()
28 if (ret == 0) in main()
34 ret = posix_spawn(&child, EXE_NAME, NULL, NULL, argv_exe, envp); in main()
35 if (ret != 0) in main()
41 ret = posix_spawn_file_actions_init(&fa); in main()
42 if (ret != 0) in main()
44 ret = posix_spawn_file_actions_addopen(&fa, 10, "/dev/null", O_RDONLY, 0); in main()
45 if (ret != 0) in main()
47 ret = posix_spawn(&child, EXE_NAME, &fa, NULL, argv_exe, envp); in main()
48 if (ret != 0) in main()
51 ret = posix_spawn_file_actions_destroy(&fa); in main()
52 if (ret != 0) in main()
57 ret = posix_spawnattr_init(&spa); in main()
58 if (ret != 0) in main()
60 ret = posix_spawnattr_setflags(&spa, POSIX_SPAWN_RESETIDS); in main()
61 if (ret != 0) in main()
63 ret = posix_spawn(&child, EXE_NAME, NULL, &spa, argv_exe, envp); in main()
64 if (ret != 0) in main()
67 ret = posix_spawnattr_destroy(&spa); in main()
68 if (ret != 0) in main()
76 ret = sigaction(SIGCHLD, &act, NULL); in main()
77 if (ret != 0) in main()
80 ret = posix_spawn(&child, EXE_NAME, NULL, NULL, argv_exe, envp); in main()
81 if (ret != 0) in main()
91 ret = posix_spawnattr_init(&spa); in main()
92 if (ret != 0) in main()
94 ret = posix_spawnattr_setflags(&spa, POSIX_SPAWN_NOSIGCHLD_NP); in main()
95 if (ret != 0) in main()
98 ret = posix_spawn(&child, EXE_NAME, NULL, &spa, argv_exe, envp); in main()
99 if (ret != 0) in main()
107 ret = posix_spawnattr_destroy(&spa); in main()
108 if (ret != 0) in main()