Skip to content

gh-117764: Add a signature for signal.set_wakeup_fd() #117777

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 12, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
warn_on_full_buffer is keyword-only parameter.
  • Loading branch information
serhiy-storchaka committed Apr 12, 2024
commit 39f28c1ca3f98b6acfcc80e610e61ae8a6c298d2
10 changes: 5 additions & 5 deletions Modules/clinic/signalmodule.c.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion Modules/signalmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -711,6 +711,7 @@ signal.set_wakeup_fd

fd as fdobj: object
/
*
warn_on_full_buffer: bool = True

Sets the fd to be written to (with the signal number) when a signal comes in.
Expand All @@ -724,7 +725,7 @@ The fd must be non-blocking.
static PyObject *
signal_set_wakeup_fd_impl(PyObject *module, PyObject *fdobj,
int warn_on_full_buffer)
/*[clinic end generated code: output=2280d72dd2a54c4f input=188c4bb61c472c32]*/
/*[clinic end generated code: output=2280d72dd2a54c4f input=5b545946a28b8339]*/
{
struct _Py_stat_struct status;
#ifdef MS_WINDOWS
Expand Down