X-Git-Url: http://git.eversberg.eu/gitweb.cgi?p=lcr.git;a=blobdiff_plain;f=action.cpp;h=478406d448b75bd037db4e51a889833213c82337;hp=352efb40e30abc8202b4de6b14d866425c0888ec;hb=8b70a9a5c2071c587ab4016dcbbb8e4bbf6da181;hpb=ca68dbb3a581cd9b4b89253aa2a418721f993f72 diff --git a/action.cpp b/action.cpp index 352efb4..478406d 100644 --- a/action.cpp +++ b/action.cpp @@ -2003,10 +2003,8 @@ void EndpointAppPBX::action_execute(void) 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);