exit(-1);
exit(EXIT_FAILURE);
deamonize (){  int pidfile;  int i;  char str[10];    switch (fork ())    {    case 0:	          setsid();      for (i=getdtablesize();i>=0;--i) close(i);      i=open("/dev/null",O_RDWR); /* open stdin */      dup(i); /* stdout */      dup(i); /* stderr */      umask(027);            if ((pidfile=open(PID_FILE,O_RDWR|O_CREAT,0640))<0) {      	syslog(LOG_CRIT,"Failed to create pid file: %m");	exit(-1);      }      if (lockf(pidfile,F_TLOCK,0)<0) {	      syslog(LOG_CRIT,"Failed to lock pid file: %m");	      exit(-1); /* can not lock */      }      sprintf(str,"%d\n",getpid());      write(pidfile,str,strlen(str)); /* record pid to lockfile */            loop ();      break;    case -1:      perror ("Failed to deamonize");      exit (-1);    default:      break;    }}