+/* each program that uses syslog must declare this variable somewhere */
+extern unsigned char logname[42];
+
+#undef init_logging
+static inline void init_logging(char *program_name)
+{
+ snprintf(logname, 42,"%s[%d]", program_name, getpid());
+ openlog(logname, 0, LOG_DAEMON);
+}
+
+#endif /* LOG */
+