This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: When a signal handler fails to write to the file descriptor registered with ``signal.set_wakeup_fd()``, an exception does not report the file descriptor
Type: behavior Stage:
Components: Extension Modules Versions: Python 3.4
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: pitrou, vajrasky
Priority: normal Keywords: patch

Created on 2013-08-18 00:14 by vajrasky, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
add_file_descriptor_to_exception_signal_set_wakeup_fd.patch vajrasky, 2013-08-18 00:14 review
add_file_descriptor_to_exception_signal_set_wakeup_fd_v2.patch vajrasky, 2013-08-18 00:16 review
Messages (4)
msg195534 - (view) Author: Vajrasky Kok (vajrasky) * Date: 2013-08-18 00:14
When a signal handler fails to write to the file descriptor registered with ``signal.set_wakeup_fd()``, an exception does not report which the file descriptor is the problematic one.

Attached the patch to put the file descriptor in the aforementioned exception and modify the unit test accordingly.
msg195535 - (view) Author: Vajrasky Kok (vajrasky) * Date: 2013-08-18 00:16
Same patch, but more pep8 compliant.
msg195536 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2013-08-18 00:17
The errno is in the following line (the "[OSError]" one).
msg195540 - (view) Author: Vajrasky Kok (vajrasky) * Date: 2013-08-18 03:12
Sorry,

When I read "... wakeup fd:\n" my subconsciousness mind automatically translated it to "... wakeup fd: %d\n". Then you made me realized there is another error message below it.

I closed this ticket as invalid.
History
Date User Action Args
2022-04-11 14:57:49adminsetgithub: 62973
2013-08-18 03:12:20vajraskysetstatus: open -> closed
resolution: not a bug
messages: + msg195540
2013-08-18 00:17:33pitrousetmessages: + msg195536
2013-08-18 00:16:37vajraskysetfiles: + add_file_descriptor_to_exception_signal_set_wakeup_fd_v2.patch

messages: + msg195535
2013-08-18 00:14:01vajraskycreate