Differences From Artifact [a37acbc186]:
- File
src/OFApplication.m
— part of check-in
[4557cfb743]
at
2017-08-01 13:55:45
on branch trunk
— OFApplication: Don't use SA_RESTART
This way, the behavior is consistent, independent of whether sigaction()
is available or not. (user: js, size: 13040) [annotate] [blame] [check-ins using] [more...]
To Artifact [f12746971d]:
- File src/OFApplication.m — part of check-in [52011fbfd6] at 2017-09-26 21:53:44 on branch trunk — Many nullability fixes (user: js, size: 13080) [annotate] [blame] [check-ins using] [more...]
︙ | ︙ | |||
506 507 508 509 510 511 512 | #define REGISTER_SIGNAL(sig) \ if ([delegate respondsToSelector: \ @selector(applicationDidReceive##sig)]) { \ _##sig##Handler = (void (*)(id, SEL))[(id)delegate \ methodForSelector: \ @selector(applicationDidReceive##sig)]; \ signal(sig, handle##sig); \ | | > | > | 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 | #define REGISTER_SIGNAL(sig) \ if ([delegate respondsToSelector: \ @selector(applicationDidReceive##sig)]) { \ _##sig##Handler = (void (*)(id, SEL))[(id)delegate \ methodForSelector: \ @selector(applicationDidReceive##sig)]; \ signal(sig, handle##sig); \ } else { \ _##sig##Handler = NULL; \ signal(sig, (void (*)(int))SIG_DFL); \ } _delegate = delegate; REGISTER_SIGNAL(SIGINT) #ifdef SIGHUP REGISTER_SIGNAL(SIGHUP) #endif |
︙ | ︙ |