+#ifdef LOG
+unsigned char logname[42];
+void log_message (int level, const char *format, ...)
+{
+ va_list args;
+
+ if (!udev_log)
+ return;
+
+ va_start(args, format);
+ vsyslog(level, format, args);
+ va_end(args);
+}
+#endif
+
+static void sig_handler(int signum)
+{
+ switch (signum) {
+ case SIGINT:
+ case SIGTERM:
+ sysbus_disconnect();
+ udevdb_exit();
+ exit(20 + signum);
+ default:
+ dbg("unhandled signal");
+ }
+}
+