if (setsid() < 0)
error("setsid failed: %.100s", strerror(errno));
/*
* Clear child's environment
*/
environ[0] = NULL;
#ifdef USE_PIPES
* Redirect stdin. We close the parent side of the socket