You are viewing a plain text version of this content. The canonical link for it is here.
Posted to proton@qpid.apache.org by "Ted Ross (JIRA)" <ji...@apache.org> on 2012/11/07 20:34:12 UTC
[jira] [Created] (PROTON-125) Driver dies unnecessarily when poll
returns error EINTR
Ted Ross created PROTON-125:
-------------------------------
Summary: 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
Fix For: 0.3
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
[jira] [Resolved] (PROTON-125) Driver dies unnecessarily when poll
returns error EINTR
Posted by "Ted Ross (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PROTON-125?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ted Ross resolved PROTON-125.
-----------------------------
Resolution: Fixed
Assignee: Ted Ross
> 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
[jira] [Resolved] (PROTON-125) Driver dies unnecessarily when poll
returns error EINTR
Posted by "Ted Ross (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PROTON-125?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ted Ross resolved PROTON-125.
-----------------------------
Resolution: Fixed
Re-resolved. pn_driver_wait now returns an error rather than exiting the process. It is up to the application to take appropriate action for poll errors.
> 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
[jira] [Reopened] (PROTON-125) Driver dies unnecessarily when poll
returns error EINTR
Posted by "Rafael H. Schloming (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PROTON-125?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
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
[jira] [Updated] (PROTON-125) Driver dies unnecessarily when poll
returns error EINTR
Posted by "Ted Ross (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PROTON-125?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ted Ross updated PROTON-125:
----------------------------
Attachment: PROTON-125.patch
Proposed fix
> 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
> 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