Skip to content

Commit

Permalink
Use our gettid
Browse files Browse the repository at this point in the history
  • Loading branch information
rocallahan committed Aug 25, 2020
1 parent d5464d0 commit 29e1ff7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/test/unexpected_exit.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ static int child_to_parent[2];

static void* run_child_thread(__attribute__((unused)) void* p) {
setpriority(PRIO_PROCESS, 0, 10);
atomic_printf("off-main-thread id = %d\n", gettid());
atomic_printf("off-main-thread id = %d\n", sys_gettid());
write(child_to_parent[1], "x", 1);
pause();
return NULL;
Expand Down
2 changes: 1 addition & 1 deletion src/test/unexpected_exit_execve.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ static int child_to_parent[2];

static void* run_child_thread(__attribute__((unused)) void* p) {
setpriority(PRIO_PROCESS, 0, 10);
atomic_printf("off-main-thread id = %d\n", gettid());
atomic_printf("off-main-thread id = %d\n", sys_gettid());
write(child_to_parent[1], "x", 1);
pause();
return NULL;
Expand Down

0 comments on commit 29e1ff7

Please sign in to comment.