projects
/
lcr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed forking, to prevent LCR to run multiple times
[lcr.git]
/
action.cpp
diff --git
a/action.cpp
b/action.cpp
index
352efb4
..
478406d
100644
(file)
--- a/
action.cpp
+++ b/
action.cpp
@@
-2003,10
+2003,8
@@
void EndpointAppPBX::action_execute(void)
if ((pid2 = fork()) == 0) {
execve(command, argv, environ);
}
if ((pid2 = fork()) == 0) {
execve(command, argv, environ);
}
- else {
- /* Exit immediately and release the waiting parent. The subprocess falls to init because the parent died */
- exit(0);
- }
+ /* Exit immediately and release the waiting parent. The subprocess falls to init because the parent died */
+ exit(0);
break;
default:
trace_header("ACTION execute", DIRECTION_NONE);
break;
default:
trace_header("ACTION execute", DIRECTION_NONE);