Trick question, can calling execve(2) result in a new thread ID?
possible spoiler Show more
@kees My bet is on `execve()` from non-primary thread. The comment around `exchange_tids(tsk, leader);` call looks suspicious :)
@trofi winner! Yes, my phrasing was careful: the tid changes, not the pid. When a non-group-leader thread execve()s, all other threads are killed and the thread assumes the group leader id (the process id).
@kees @trofi we should learn how to read.
Mastodon server of https://doma.dev.