Skip to content

Commit

Permalink
phtread: call pthread_exit implicitely on return from start function
Browse files Browse the repository at this point in the history
JIRA: RTOS-634
  • Loading branch information
badochov committed Oct 24, 2023
1 parent 79d01b8 commit 864fa71
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pthread/pthread.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,9 @@ static void start_point(void *args)

_errno_new(&ctx->e);

ctx->retval = (void *)(ctx->start_routine(ctx->arg));
void *retval = (void *)(ctx->start_routine(ctx->arg));

endthread();
pthread_exit(retval);
}


Expand Down

0 comments on commit 864fa71

Please sign in to comment.