]> git.wh0rd.org - home.git/blobdiff - X-life-line.c
import vapier-m
[home.git] / X-life-line.c
diff --git a/X-life-line.c b/X-life-line.c
new file mode 100644 (file)
index 0000000..75bef64
--- /dev/null
@@ -0,0 +1,12 @@
+/* Application to have X launch so I can restart window manager
+ * without having to restart X (and thus all my apps).
+ */
+#include <signal.h>
+#include <unistd.h>
+int main(int argc, char *argv[])
+{
+       signal(SIGCHLD, SIG_IGN);
+       while (1)
+               sleep(3600);
+       return 0;
+}