version 1.5 | | version 1.6 |
---|
| | |
/* | | /* |
* static char *rcsid_daemon_c = | | * static char *rcsid_daemon_c = |
* "$Id: daemon.c,v 1.5 2002/03/20 06:27:46 mwedel Exp $"; | | * "$Id: daemon.c,v 1.6 2005/09/04 16:58:12 akirschbaum Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
int forkresult; | | int forkresult; |
| | |
if((logfile=fopen(filename,"a"))==NULL){ | | if((logfile=fopen(filename,"a"))==NULL){ |
printf("Couldn't create logfile %s.\n",filename); | | fprintf(stderr, "Couldn't create logfile %s: %s\n", filename, strerror_local(errno)); |
exit(0); | | exit(0); |
} | | } |
fputs("\n========================\n",logfile); | | fputs("\n========================\n",logfile); |