Thread with 6 posts
jump to expanded postoh so threads and processes are the same thing on linux, with forking and thread creation both just using the clone syscall, and it wasn't until linux 2.4 that thread groups were added to better support phreads, enabling threads to have a shared process (thread group) id. cool
@hikari have you seen how much of a mess this makes setxid (setuid etc.)?
@r nope!
@hikari these permissions are supposed to be a property of the entire process, but linux implements them as a property of each thread. the C runtime library thus needs to wrap them in such a way that all threads appear to atomically change permissions. for extra spicy fun, this needs to remain async-signal-safe
@hikari Linux is actually a faker because SIGKILL and SIGSTOP affect the process not the thread that it was applied to