Alpine Linux threads status
I am updating dcc in !29459 (merged) and found an issue with the pid having a minus in front of it, the author has responded asking if group pid is needed on Alpine Linux. Here is the code snippet with comments:
#ifdef linux
/* Linux threads are broken. Signals given the
* original process are delivered to only the
* thread that happens to have that PID. The
* sendmail libmilter thread that needs to hear
* SIGINT and other signals is known only to the milter.
* Unless you put its PID into the file, it will not hear
* the signals. That breaks scripts that need to stop dccm.
* However, signaling the process group works. */
fprintf(f, "-%d\n", (u_int)getpgrp());
#else
fprintf(f, "%d\n", (u_int)getpid());
#endif
Are linux threads broken on alpine as well?