Commit 6a0125b
committed
[oss-build] Backport bpo-41675: Modernize siginterrupt calls
Summary:
The OSS build fails at compilation with this error:
```
/home/aniketpanse/cinder/Modules/signalmodule.c: In function ‘signal_siginterrupt_impl’:
/home/aniketpanse/cinder/Modules/signalmodule.c:661:5: error: ‘siginterrupt’ is deprecated: Use sigaction with SA_RESTART instead [-Werror=deprecated-declarations]
661 | if (siginterrupt(signalnum, flag)<0) {
| ^~
In file included from /home/aniketpanse/cinder/Modules/signalmodule.c:26:
/usr/include/signal.h:311:12: note: declared here
311 | extern int siginterrupt (int __sig, int __interrupt) __THROW
| ^~~~~~~~~~~~
cc1: all warnings being treated as errors
make: *** [Makefile:2431: Modules/signalmodule.o] Error 1
make: *** Waiting for unfinished jobs....
```
Backport upstream fix from python/cpython#22028
Test Plan: ran `./oss-build-and-test.sh`, which succeeded
Reviewers: carljm, #cinder
Reviewed By: carljm
Subscribers: jackyzhang, #ig-webserver
Differential Revision: https://phabricator.intern.facebook.com/D28297270
Signature: 28297270:1620421376:0a117614f6257be559e56172abd0ff2133d2b2761 parent f679a0e commit 6a0125b
1 file changed
Lines changed: 13 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
658 | 658 | | |
659 | 659 | | |
660 | 660 | | |
661 | | - | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
662 | 674 | | |
663 | 675 | | |
664 | 676 | | |
| |||
0 commit comments