// open syslog if ever needed
openlog("AGB-log", 0, LOG_DAEMON);
- // -------------- Try to kill any previsou process if asked ---------------------
+ // -------------- Try to kill any previous process if asked ---------------------
if (session->killPrevious) {
pid = readPidFile (session->config); // enforce commandline option
switch (pid) {
if (status == -1) goto errorPidFile;
// we are in father process, we don't need this one
- exit (0);
+ _exit (0);
} // end background-foreground