File tree Expand file tree Collapse file tree 1 file changed +3
-17
lines changed
testcases/kernel/syscalls/sigrelse Expand file tree Collapse file tree 1 file changed +3
-17
lines changed Original file line number Diff line number Diff line change @@ -192,9 +192,6 @@ int main(int argc, char **argv)
192
192
* parse standard options
193
193
*/
194
194
tst_parse_opts (argc , argv , NULL , NULL );
195
- #ifdef UCLINUX
196
- maybe_run_child (& child , "dd" , & pipe_fd [1 ], & pipe_fd2 [0 ]);
197
- #endif
198
195
199
196
/*
200
197
* perform global setup for test
@@ -208,23 +205,12 @@ int main(int argc, char **argv)
208
205
/*
209
206
* fork off a child process
210
207
*/
211
- if ((pid = tst_fork ()) < 0 ) {
208
+ if ((pid = tst_fork ()) < 0 )
212
209
tst_brkm (TBROK | TERRNO , cleanup , "fork() failed" );
213
-
214
- } else if (pid > 0 ) {
210
+ else if (pid > 0 )
215
211
parent ();
216
-
217
- } else {
218
- #ifdef UCLINUX
219
- if (self_exec (argv [0 ], "dd" , pipe_fd [1 ], pipe_fd2 [0 ]) <
220
- 0 ) {
221
- tst_brkm (TBROK | TERRNO , cleanup ,
222
- "self_exec() failed" );
223
- }
224
- #else
212
+ else
225
213
child ();
226
- #endif
227
- }
228
214
229
215
}
230
216
You can’t perform that action at this time.
0 commit comments