tX session holder: xwait - scripts - various script and utils
 (HTM) git clone git://z3bra.org/scripts
 (DIR) Log
 (DIR) Files
 (DIR) Refs
       ---
 (DIR) commit 7e6007ada66d8d97601b459f26fed6bb2bf91058
 (DIR) parent abebf2eb87353469ebe8adb5e54dd89260936be0
 (HTM) Author: z3bra <willy@mailoo.org>
       Date:   Wed, 22 Oct 2014 16:51:18 +0200
       
       X session holder: xwait
       
       Diffstat:
         A xwait                               |      30 ++++++++++++++++++++++++++++++
       
       1 file changed, 30 insertions(+), 0 deletions(-)
       ---
 (DIR) diff --git a/xwait b/xwait
       t@@ -0,0 +1,30 @@
       +#!/bin/tcc -run
       +
       +/* 
       + * use it to hold your X session.
       + * You can either compile it, or run it through tcc using it's special shebang,
       + * that's up to you, really.
       + *
       + * echo "exec xwait" >> ~/.xinitrc
       + *
       + */
       +
       +#include <unistd.h>
       +#include <sys/wait.h>
       +
       +int
       +main ( c, v, e )
       +    int c;
       +    char **v;
       +    char **e;
       +    {
       +    for( ;; )
       +        {
       +        wait( NULL );
       +        sleep( 1 );
       +        }
       +
       +    return 0;
       +    }
       +
       +/* vim: set ft=c: */