mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-12-30 22:01:42 +01:00
* use MD5 library * add patch so pid file does not start with - * move rcDCC to extras * fixes #13361
23 lines
722 B
Diff
23 lines
722 B
Diff
--- a/clntlib/restart.c
|
|
+++ b/clntlib/restart.c
|
|
@@ -217,19 +217,7 @@
|
|
if (!f) {
|
|
dcc_error_msg("fopen(%s): %s", pidpath->c, ERROR_STR());
|
|
} else {
|
|
-#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
|
|
fclose(f);
|
|
}
|
|
}
|