Skip to content

Commit fbeb4d4

Browse files
committed
Add signal.NSIG constant
1 parent bb5a28b commit fbeb4d4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/modules/SignalModuleBuiltins.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ public void initialize(Python3Core core) {
121121
addBuiltinConstant("ITIMER_REAL", ITIMER_REAL);
122122
addBuiltinConstant("ITIMER_VIRTUAL", ITIMER_VIRTUAL);
123123
addBuiltinConstant("ITIMER_PROF", ITIMER_PROF);
124+
addBuiltinConstant("NSIG", Signals.SIGMAX + 1);
124125
for (int i = 0; i < Signals.SIGNAL_NAMES.length; i++) {
125126
String name = Signals.SIGNAL_NAMES[i];
126127
if (name != null) {
@@ -539,7 +540,7 @@ private static final class ModuleData {
539540
final class Signals {
540541
static final int SIG_DFL = 0;
541542
static final int SIG_IGN = 1;
542-
private static final int SIGMAX = 31;
543+
static final int SIGMAX = 64;
543544
static final String[] SIGNAL_NAMES = new String[SIGMAX + 1];
544545

545546
static {

0 commit comments

Comments
 (0)