diff options
Diffstat (limited to 'selfrestart.c')
| -rw-r--r-- | selfrestart.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/selfrestart.c b/selfrestart.c new file mode 100644 index 0000000..1157d29 --- /dev/null +++ b/selfrestart.c @@ -0,0 +1,13 @@ +#include <unistd.h> + + +// Simplified version of +void self_restart(const Arg *arg) { + char *const argv[] = {"dwm", NULL}; + + if(argv[0] == NULL){ + return; + } + + execvp(argv[0], argv); +} |
