summaryrefslogtreecommitdiffstats
path: root/twin
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-01-19 17:19:19 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-01-19 17:19:19 -0600
commit5f413b26ebaab8a6478427e4125bda628058ff85 (patch)
tree47f38ac98609ed6e3a01a21887749fcc5df5c156 /twin
parent1e2983ad0107fb1d26e3e9931528701f30632c6d (diff)
downloadtdebase-5f413b26ebaab8a6478427e4125bda628058ff85.tar.gz
tdebase-5f413b26ebaab8a6478427e4125bda628058ff85.zip
Add keyboard hotplug (add/remove) support to tsak
This closes Bug 587 Fix warning in kompmgr
Diffstat (limited to 'twin')
-rw-r--r--twin/kompmgr/kompmgr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/twin/kompmgr/kompmgr.c b/twin/kompmgr/kompmgr.c
index 5daf8c217..82166766e 100644
--- a/twin/kompmgr/kompmgr.c
+++ b/twin/kompmgr/kompmgr.c
@@ -60,6 +60,7 @@ check baghira.sf.net for more infos
#include <signal.h>
#include <time.h>
#include <unistd.h>
+#include <libgen.h>
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <X11/Xatom.h>
@@ -397,7 +398,7 @@ void delete_pid_file()
int chars = readlink("/proc/self/exe", me, sizeof(me));
me[chars] = 0;
me[2047] = 0;
- execl(me, NULL);
+ execl(me, basename(me), (char*)NULL);
}
#endif
}