aports/community/dcc/30-pid.patch
Duncan Bellamy c3476891e3 community/dcc: add seperate initd files
* use MD5 library
* add patch so pid file does not start with -
* move rcDCC to extras
* fixes #13361
2023-09-14 10:33:03 +00:00

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);
}
}