Rafael H. Schloming reopened PROTON-125:

This patch seems to have caused some problems with the python binding. Now when 
you control-C a python script that is blocking, it will just hang forever 
instead of exiting. I think we should actually make the driver return whatever 
error code it encounters instead of using the DIE_IFE macro. That way the 
caller can choose how to handle the condition rather than having the whole 
program dump. I can make messenger propogate the error and this will come out 
as a nice exception in python, and you can check for EINTR and ignore it if 
that's what makes sense for your code.
> Driver dies unnecessarily when poll returns error EINTR
> -------------------------------------------------------
>                 Key: PROTON-125
>                 URL: https://issues.apache.org/jira/browse/PROTON-125
>             Project: Qpid Proton
>          Issue Type: Bug
>          Components: proton-c
>    Affects Versions: 0.2
>            Reporter: Ted Ross
>            Assignee: Ted Ross
>             Fix For: 0.3
>         Attachments: PROTON-125.patch
> If a program that uses proton-c receives a signal (SIGHUP, etc.), it will 
> intermittently exit with a "System Call Interrupted" (EINTR) error.
> The DIE_IFE macro that wraps the call to "poll" in the driver needs to handle 
> this error to avoid unnecessary process exits.

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

Reply via email to