Public feed #723780

cy / getstream-ra (possible fork

public c v1 · immutable
Raw Edit
·published 2007-10-03 00:58 UTC
rendered paste body
if(fork() == 0) {		if(fork() == 0) {			if(dpy)				close(ConnectionNumber(dpy));			setsid();			execl(shell, shell, "-c", arg, (char *)NULL);			fprintf(stderr, "dwm: execl '%s -c %s'", shell, arg);			perror(" failed");		}		exit(0);	}	wait(0);}