File tree Expand file tree Collapse file tree 4 files changed +26
-9
lines changed Expand file tree Collapse file tree 4 files changed +26
-9
lines changed Original file line number Diff line number Diff line change @@ -364,15 +364,14 @@ addToLibrary({
364
364
var signalToNumber = ( sig ) => {
365
365
// implement only the most common ones, and fallback to SIGINT
366
366
switch ( sig ) {
367
- case 'SIGHUP' : return 1 ;
368
- case 'SIGINT ' : return 2 ;
369
- case 'SIGQUIT ' : return 3 ;
370
- case 'SIGFPE ' : return 8 ;
371
- case 'SIGKILL ' : return 9 ;
372
- case 'SIGALRM ' : return 14 ;
373
- case 'SIGTERM' : return 15 ;
367
+ case 'SIGHUP' : return { { { cDefs . SIGHUP } } } ;
368
+ case 'SIGQUIT ' : return { { { cDefs . SIGQUIT } } } ;
369
+ case 'SIGFPE ' : return { { { cDefs . SIGFPE } } } ;
370
+ case 'SIGKILL ' : return { { { cDefs . SIGKILL } } } ;
371
+ case 'SIGALRM ' : return { { { cDefs . SIGALRM } } } ;
372
+ case 'SIGTERM ' : return { { { cDefs . SIGTERM } } } ;
373
+ default : return { { { cDefs . SIGINT } } } ;
374
374
}
375
- return 2 ; // SIGINT
376
375
}
377
376
return _W_EXITCODE ( 0 , signalToNumber ( ret . signal ) ) ;
378
377
}
Original file line number Diff line number Diff line change 278
278
{
279
279
"file" : " signal.h" ,
280
280
"defines" : [
281
- " SIGALRM"
281
+ " SIGALRM" ,
282
+ " SIGFPE" ,
283
+ " SIGHUP" ,
284
+ " SIGINT" ,
285
+ " SIGKILL" ,
286
+ " SIGQUIT" ,
287
+ " SIGTERM"
282
288
]
283
289
},
284
290
{
Original file line number Diff line number Diff line change 371
371
"SEEK_SET" : 0 ,
372
372
"SIGALRM" : 14 ,
373
373
"SIGCANCEL" : 33 ,
374
+ "SIGFPE" : 8 ,
375
+ "SIGHUP" : 1 ,
376
+ "SIGINT" : 2 ,
377
+ "SIGKILL" : 9 ,
378
+ "SIGQUIT" : 3 ,
379
+ "SIGTERM" : 15 ,
374
380
"SOCK_CLOEXEC" : 524288 ,
375
381
"SOCK_DGRAM" : 2 ,
376
382
"SOCK_NONBLOCK" : 2048 ,
Original file line number Diff line number Diff line change 371
371
"SEEK_SET" : 0 ,
372
372
"SIGALRM" : 14 ,
373
373
"SIGCANCEL" : 33 ,
374
+ "SIGFPE" : 8 ,
375
+ "SIGHUP" : 1 ,
376
+ "SIGINT" : 2 ,
377
+ "SIGKILL" : 9 ,
378
+ "SIGQUIT" : 3 ,
379
+ "SIGTERM" : 15 ,
374
380
"SOCK_CLOEXEC" : 524288 ,
375
381
"SOCK_DGRAM" : 2 ,
376
382
"SOCK_NONBLOCK" : 2048 ,
You can’t perform that action at this time.
0 commit comments