2 * (C)opyright MMVI Anselm R. Garbe <garbeam at gmail dot com>
3 * See LICENSE file for license details.
15 bad_malloc(unsigned int size)
17 eprint("fatal: could not malloc() %u bytes\n", size);
23 emallocz(unsigned int size)
25 void *res = calloc(1, size);
33 eprint(const char *errstr, ...)
38 vfprintf(stderr, errstr, ap);
46 static char *shell = NULL;
48 if(!shell && !(shell = getenv("SHELL")))
56 close(ConnectionNumber(dpy));
58 execl(shell, shell, "-c", arg->cmd, NULL);
59 fprintf(stderr, "dwm: execl '%s'", arg->cmd);