X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fmain.c;h=b17435ec8bfcc800e2f3b31009c9b6b4257056e6;hb=a4b35de73384d4394b5201838c1c785355d9a7fd;hp=302d3076a2f27bb07770bf6f3119d0735fad438e;hpb=181efe6b62e3c4fa8293d501719fa5934cb0f59c;p=src%2Fapp-framework-binder.git diff --git a/src/main.c b/src/main.c index 302d3076..b17435ec 100644 --- a/src/main.c +++ b/src/main.c @@ -442,7 +442,7 @@ int main(int argc, char *argv[]) { // 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) { @@ -574,7 +574,7 @@ int main(int argc, char *argv[]) { if (status == -1) goto errorPidFile; // we are in father process, we don't need this one - exit (0); + _exit (0); } // end background-foreground