diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-02-27 06:56:08 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-02-27 06:56:08 +0000 |
commit | 4b42cfaf299deb45d834eae4a6c679846cda6a78 (patch) | |
tree | 63e7f959132eca2c3feeb81e76efdfed9c8a535d /apps | |
parent | f080d88eb8a7eaf5fac8898547dc309c7d75ab29 (diff) |
Ignore ECHILD in app_system
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2266 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rwxr-xr-x | apps/app_system.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/app_system.c b/apps/app_system.c index 3378602fe..47f16a8fc 100755 --- a/apps/app_system.c +++ b/apps/app_system.c @@ -53,13 +53,15 @@ static int system_exec(struct ast_channel *chan, void *data) LOCAL_USER_ADD(u); /* Do our thing here */ res = system((char *)data); - if (res < 0) { + if ((res < 0) && (errno != ECHILD)) { ast_log(LOG_WARNING, "Unable to execute '%s'\n", (char *)data); res = -1; } else if (res == 127) { ast_log(LOG_WARNING, "Unable to execute '%s'\n", (char *)data); res = -1; } else { + if (res < 0) + res = 0; if (res && ast_exists_extension(chan, chan->context, chan->exten, chan->priority + 101, chan->callerid)) chan->priority+=100; res = 0; |