openbsd-ports/sysutils/consolekit/patches/patch-src_ck-vt-monitor_c

18 lines
725 B
Plaintext
Raw Normal View History

$OpenBSD: patch-src_ck-vt-monitor_c,v 1.3 2011/04/28 13:08:33 ajacoutot Exp $
2010-07-05 02:51:40 -04:00
VT_WAITACTIVE started in a g_thread with our userland pthreads(3) makes
the main console-kit-daemon process waits forever on VT1, so are forced
to disable monitoring for console activation.
--- src/ck-vt-monitor.c.orig Wed Nov 17 01:50:46 2010
+++ src/ck-vt-monitor.c Tue Nov 30 15:30:22 2010
@@ -380,7 +380,7 @@ vt_add_watches (CkVtMonitor *vt_monitor)
int i;
gint32 current_num;
-#if defined (__sun) && !defined (HAVE_SYS_VT_H)
+#if defined (__sun) && !defined (HAVE_SYS_VT_H) || defined(__OpenBSD__)
/* Best to do nothing if VT is not supported */
#elif defined (__sun) && defined (HAVE_SYS_VT_H)
/*