Skip to content

Conversation

@serhiy-storchaka
Copy link
Member

@serhiy-storchaka serhiy-storchaka commented May 7, 2018

  • Expose the sigset_t converter via private API _Py_Sigset_Converter().
  • Use Argument Clinic for parsing sigset_t in signalmodule.c.
  • Raise ValueError instead OverflowError for integers out of the C long range.

Based on patch by @pablogsal.

https://bugs.python.org/issue33441

* Expose the sigset_t converter via private API _Py_Sigset_Converter().
* Use Argument Clinic for parsing sigset_t in signalmodule.c.
* Raise ValueError instead OverflowError for integers out of
  the C long range.

Based on patch by Pablo Galindo Salgado.
long signum;
int overflow;

sigemptyset(mask);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we check the return value of this?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! Thanks.

@serhiy-storchaka serhiy-storchaka merged commit d54cfb1 into python:master May 8, 2018
@serhiy-storchaka serhiy-storchaka deleted the sigset-converter branch May 8, 2018 04:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip news type-feature A feature request or enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants