Skip to content

Commit

Permalink
stress-vforkmany: remove redundant goto after exit call
Browse files Browse the repository at this point in the history
Signed-off-by: Colin Ian King <[email protected]>
  • Loading branch information
ColinIanKing committed Jun 6, 2022
1 parent 69c9dc0 commit a8f5c9d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions stress-vforkmany.c
Original file line number Diff line number Diff line change
Expand Up @@ -192,10 +192,9 @@ static int stress_vforkmany(const stress_args_t *args)
inc_counter(args);
}
if (pid < 0) {
/* failed, only exit of not the first parent */
/* failed */
shim_sched_yield();
_exit(0);
goto vfork_again;
} else if (pid == 0) {
if (vm) {
int flags = 0;
Expand Down

0 comments on commit a8f5c9d

Please sign in to comment.