| Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/bash/src/builtins/jobs.def |
| Switch to Source code | Preprocessed file |
| Line | Source | Count | ||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 2 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 3 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 4 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 5 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 6 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 7 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 8 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 9 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 10 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 11 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 12 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 13 | static int execute_list_with_replacements (WORD_LIST *); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 14 | int | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 15 | jobs_builtin (list) | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 16 | WORD_LIST *list; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 17 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 18 | int form, execute, state, opt, any_failed, job; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 19 | sigset_t set, oset; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 20 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 21 | execute = any_failed = 0; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 22 | form = 0; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 23 | state = 0x0; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 24 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 25 | reset_internal_getopt (); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 26 | while ((
| 9-19 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 27 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 28 | switch (opt) | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 29 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 30 | case never executed: 'l':case 'l':never executed: case 'l': | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 31 | form = 1; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 32 | break; never executed: break; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 33 | case executed 2 times by 1 test: 'p':case 'p':Executed by:
executed 2 times by 1 test: case 'p':Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 34 | form = 2; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 35 | break; executed 2 times by 1 test: break;Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 36 | case never executed: 'n':case 'n':never executed: case 'n': | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 37 | form = 3; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 38 | break; never executed: break; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 39 | case never executed: 'x':case 'x':never executed: case 'x': | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 40 | if (form != 0
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 41 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 42 | builtin_error ( | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 43 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 44 | "no other options allowed with `-x'" | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 45 | , 5) | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 46 | ); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 47 | return never executed: (1);return (1);never executed: return (1); | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 48 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 49 | execute++; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 50 | break; never executed: break; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 51 | case executed 4 times by 1 test: 'r':case 'r':Executed by:
executed 4 times by 1 test: case 'r':Executed by:
| 4 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 52 | state = 0x1; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 53 | break; executed 4 times by 1 test: break;Executed by:
| 4 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 54 | case executed 3 times by 1 test: 's':case 's':Executed by:
executed 3 times by 1 test: case 's':Executed by:
| 3 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 55 | state = 0x2; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 56 | break; executed 3 times by 1 test: break;Executed by:
| 3 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 57 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 58 | case never executed: -99:case -99:never executed: builtin_help (); returncase -99:never executed: (258);return (258);never executed: return (258); | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 59 | default never executed: :default:never executed: default: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 60 | builtin_usage (); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 61 | return never executed: (258);return (258);never executed: return (258); | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 62 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 63 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 64 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 65 | list = loptend; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 66 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 67 | if (execute
| 0-19 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 68 | return never executed: (execute_list_with_replacements (list));return (execute_list_with_replacements (list));never executed: return (execute_list_with_replacements (list)); | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 69 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 70 | if (!list
| 5-14 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 71 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 72 | switch (state) | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 73 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 74 | case executed 7 times by 1 test: 0x0:case 0x0:Executed by:
executed 7 times by 1 test: case 0x0:Executed by:
| 7 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 75 | list_all_jobs (form); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 76 | break; executed 7 times by 1 test: break;Executed by:
| 7 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 77 | case executed 4 times by 1 test: 0x1:case 0x1:Executed by:
executed 4 times by 1 test: case 0x1:Executed by:
| 4 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 78 | list_running_jobs (form); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 79 | break; executed 4 times by 1 test: break;Executed by:
| 4 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 80 | case executed 3 times by 1 test: 0x2:case 0x2:Executed by:
executed 3 times by 1 test: case 0x2:Executed by:
| 3 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 81 | list_stopped_jobs (form); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 82 | break; executed 3 times by 1 test: break;Executed by:
| 3 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 83 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 84 | return executed 14 times by 1 test: (0);return (0);Executed by:
executed 14 times by 1 test: return (0);Executed by:
| 14 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 85 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 86 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 87 | while (list
| 5 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 88 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 89 | do { sigemptyset (&set); sigaddset (&set, | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 90 | 17 | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 91 | ); sigemptyset (&oset); sigprocmask ( | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 92 | 0 | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 93 | , &set, &oset); } while (0); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 94 | job = get_job_spec (list); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 95 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 96 | if ((
| 0-5 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 97 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 98 | sh_badjob (list->word->word); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 99 | any_failed++; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 100 | } executed 1 time by 1 test: end of blockExecuted by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 101 | else if (job != -2
| 0-4 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 102 | list_one_job ((JOB *) executed 4 times by 1 test: list_one_job ((JOB *) ((void *)0) , form, 0, job);Executed by:
| 4 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 103 | ((void *)0) executed 4 times by 1 test: list_one_job ((JOB *) ((void *)0) , form, 0, job);Executed by:
| 4 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 104 | , form, 0, job); executed 4 times by 1 test: list_one_job ((JOB *) ((void *)0) , form, 0, job);Executed by:
| 4 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 105 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 106 | sigprocmask ( | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 107 | 2 | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 108 | , &oset, (sigset_t *) | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 109 | ((void *)0) | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 110 | ); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 111 | list = list->next; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 112 | } executed 5 times by 1 test: end of blockExecuted by:
| 5 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 113 | return executed 5 times by 1 test: (any_failed ? 1 : 0);return (any_failed ? 1 : 0);Executed by:
executed 5 times by 1 test: return (any_failed ? 1 : 0);Executed by:
| 5 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 114 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 115 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 116 | static int | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 117 | execute_list_with_replacements (list) | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 118 | WORD_LIST *list; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 119 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 120 | register WORD_LIST *l; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 121 | int job, result; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 122 | COMMAND *command; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 123 | JOB *j; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 124 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 125 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 126 | for (l = list; l
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 127 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 128 | if (l->word->word[0] == '%'
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 129 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 130 | job = get_job_spec (l); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 131 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 132 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 133 | if (((
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 134 | continue; never executed: continue; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 135 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 136 | j = (jobs[(job)]); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 137 | sh_xfree((l->word->word), "./jobs.def", 190); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 138 | l->word->word = itos (j->pgrp); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 139 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 140 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 141 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 142 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 143 | begin_unwind_frame ("jobs_builtin"); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 144 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 145 | command = make_bare_simple_command (); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 146 | command->value.Simple->words = copy_word_list (list); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 147 | command->value.Simple->redirects = (REDIRECT *) | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 148 | ((void *)0) | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 149 | ; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 150 | command->flags |= 0x20; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 151 | command->value.Simple->flags |= 0x20; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 152 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 153 | add_unwind_protect (dispose_command, command); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 154 | result = execute_command (command); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 155 | dispose_command (command); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 156 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 157 | discard_unwind_frame ("jobs_builtin"); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 158 | return never executed: (result);return (result);never executed: return (result); | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 159 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 160 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 161 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 162 | int | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 163 | disown_builtin (list) | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 164 | WORD_LIST *list; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 165 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 166 | int opt, job, retval, nohup_only, running_jobs, all_jobs; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 167 | sigset_t set, oset; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 168 | intmax_t pid_value; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 169 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 170 | nohup_only = running_jobs = all_jobs = 0; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 171 | reset_internal_getopt (); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 172 | while ((
| 4-8 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 173 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 174 | switch (opt) | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 175 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 176 | case never executed: 'a':case 'a':never executed: case 'a': | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 177 | all_jobs = 1; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 178 | break; never executed: break; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 179 | case executed 1 time by 1 test: 'h':case 'h':Executed by:
executed 1 time by 1 test: case 'h':Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 180 | nohup_only = 1; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 181 | break; executed 1 time by 1 test: break;Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 182 | case never executed: 'r':case 'r':never executed: case 'r': | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 183 | running_jobs = 1; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 184 | break; never executed: break; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 185 | case never executed: -99:case -99:never executed: builtin_help (); returncase -99:never executed: (258);return (258);never executed: return (258); | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 186 | default executed 3 times by 1 test: :default:Executed by:
executed 3 times by 1 test: default:Executed by:
| 3 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 187 | builtin_usage (); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 188 | return executed 3 times by 1 test: (258);return (258);Executed by:
executed 3 times by 1 test: return (258);Executed by:
| 3 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 189 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 190 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 191 | list = loptend; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 192 | retval = 0; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 193 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 194 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 195 | if (list == 0
| 0-8 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 196 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 197 | if (nohup_only
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 198 | nohup_all_jobs (running_jobs); never executed: nohup_all_jobs (running_jobs); | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 199 | else | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 200 | delete_all_jobs (running_jobs); never executed: delete_all_jobs (running_jobs); | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 201 | return never executed: (0);return (0);never executed: return (0); | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 202 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 203 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 204 | do | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 205 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 206 | do { sigemptyset (&set); sigaddset (&set, | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 207 | 17 | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 208 | ); sigemptyset (&oset); sigprocmask ( | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 209 | 0 | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 210 | , &set, &oset); } while (0); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 211 | job = (list
| 0-8 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 212 | ? get_job_by_pid ((pid_t) pid_value, 0) | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 213 | : get_job_spec (list); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 214 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 215 | if (job == -1
| 0-8 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 216 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 217 | sh_badjob (list ? list->word->word : | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 218 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 219 | "current" | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 220 | , 5) | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 221 | ); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 222 | retval = 1; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 223 | } executed 6 times by 1 test: end of blockExecuted by:
| 6 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 224 | else if (nohup_only
| 1 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 225 | nohup_job (job); executed 1 time by 1 test: nohup_job (job);Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 226 | else | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 227 | delete_job (job, 1); executed 1 time by 1 test: delete_job (job, 1);Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 228 | sigprocmask ( | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 229 | 2 | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 230 | , &oset, (sigset_t *) | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 231 | ((void *)0) | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 232 | ); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 233 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 234 | if (list
| 0-8 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 235 | list = list->next; executed 8 times by 1 test: list = list->next;Executed by:
| 8 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 236 | } executed 8 times by 1 test: end of blockExecuted by:
| 8 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 237 | while (list
| 0-8 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 238 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 239 | return executed 8 times by 1 test: (retval);return (retval);Executed by:
executed 8 times by 1 test: return (retval);Executed by:
| 8 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 240 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| Switch to Source code | Preprocessed file |