Code Review
/
src
/
app-framework-binder.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
afm-main-plugin: improves error reporting
[src/app-framework-binder.git]
/
src
/
main.c
diff --git
a/src/main.c
b/src/main.c
index
b3895cf
..
b17435e
100644
(file)
--- a/
src/main.c
+++ b/
src/main.c
@@
-423,7
+423,7
@@
int main(int argc, char *argv[]) {
printHelp(programName);
goto normalExit;
printHelp(programName);
goto normalExit;
- }
+
}
}
// if exist merge config file with CLI arguments
}
// if exist merge config file with CLI arguments
@@
-442,7
+442,7
@@
int main(int argc, char *argv[]) {
// open syslog if ever needed
openlog("AGB-log", 0, LOG_DAEMON);
// open syslog if ever needed
openlog("AGB-log", 0, LOG_DAEMON);
- // -------------- Try to kill any previ
sou
process if asked ---------------------
+ // -------------- Try to kill any previ
ous
process if asked ---------------------
if (session->killPrevious) {
pid = readPidFile (session->config); // enforce commandline option
switch (pid) {
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
if (status == -1) goto errorPidFile;
// we are in father process, we don't need this one
- exit (0);
+
_
exit (0);
} // end background-foreground
} // end background-foreground