Sfoglia il codice sorgente

s-s-d: Add process name kernel limits for several systems

Specifically: Solaris, NetBSD, OpenBSD, FreeBSD and Darwin.
Guillem Jover 15 anni fa
parent
commit
6de064f083
2 ha cambiato i file con 12 aggiunte e 0 eliminazioni
  1. 2 0
      debian/changelog
  2. 10 0
      utils/start-stop-daemon.c

+ 2 - 0
debian/changelog

@@ -49,6 +49,8 @@ dpkg (1.16.1) UNRELEASED; urgency=low
   * Clarify “EXIT STATUS” section in man pages by using a table.
   * Add a --status command to start-stop-daemon returning LSB Init Script
     status action exit codes.
+  * Add start-stop-daemon process name kernel limits for Solaris, NetBSD,
+    OpenBSD, FreeBSD and Darwin.
 
   [ Updated man page translations ]
   * German (Helge Kreutzmann).

+ 10 - 0
utils/start-stop-daemon.c

@@ -118,6 +118,16 @@
 #if defined(OSLinux)
 /* This comes from TASK_COMM_LEN defined in Linux's include/linux/sched.h. */
 #define PROCESS_NAME_SIZE 15
+#elif defined(OSsunos)
+#define PROCESS_NAME_SIZE 15
+#elif defined(OSDarwin)
+#define PROCESS_NAME_SIZE 16
+#elif defined(OSNetBSD)
+#define PROCESS_NAME_SIZE 16
+#elif defined(OSOpenBSD)
+#define PROCESS_NAME_SIZE 16
+#elif defined(OSFreeBSD)
+#define PROCESS_NAME_SIZE 19
 #endif
 
 #if defined(SYS_ioprio_set) && defined(linux)