[asterisk-bugs] [JIRA] (ASTERISK-20532) AGI script fork()s, Asterisk doesn't keep processing the dialplan when parent dies

Matt Jordan (JIRA) noreply at issues.asterisk.org
Thu Oct 18 10:51:18 CDT 2012


     [ https://issues.asterisk.org/jira/browse/ASTERISK-20532?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Matt Jordan updated ASTERISK-20532:
-----------------------------------

    Affects Version/s: 1.8.13.1
    
> AGI script fork()s, Asterisk doesn't keep processing the dialplan when parent dies
> ----------------------------------------------------------------------------------
>
>                 Key: ASTERISK-20532
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-20532
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Resources/res_agi
>    Affects Versions: 1.8.13.1
>         Environment: Debian 6 64bits
>            Reporter: Omri Bahumi
>            Assignee: Omri Bahumi
>            Severity: Minor
>         Attachments: agi_problematic.py, agi_workaround.py
>
>
> When an AGI script forks, Asterisk won't keep processing the dialplan when the parent dies.
> By looking at the AGI code I've noticed it waits for an EOF on the stdout file descriptor, and not for the process to die.
> Attached two Python AGI scripts (uses pyst-0.4.38).
> Problematic example: you'll notice the dialplan stops processing until both the parent and child exit (hence closing stdout fd).
> Workaround example: the execution continues when the parent exits and the child closes stdout, not waiting for the entire script execution to terminate.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list