1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* signal.c (rb_disable_interrupt, rb_enable_interrupt): see

USE_TRAP_MASK.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22588 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2009-02-24 02:21:53 +00:00
parent 8503451387
commit 6bdeed2b47
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
Tue Feb 24 11:21:50 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
* signal.c (rb_disable_interrupt, rb_enable_interrupt): see
USE_TRAP_MASK.
Tue Feb 24 10:49:37 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
* process.c (rb_waitpid): last argument was missing.

View file

@ -534,7 +534,7 @@ static int trap_last_mask;
void
rb_disable_interrupt(void)
{
#if !defined(_WIN32) && !defined(__SYMBIAN32__)
#if USE_TRAP_MASK
sigset_t mask;
sigfillset(&mask);
sigdelset(&mask, SIGVTALRM);
@ -546,7 +546,7 @@ rb_disable_interrupt(void)
void
rb_enable_interrupt(void)
{
#if !defined(_WIN32) && !defined(__SYMBIAN32__)
#if USE_TRAP_MASK
sigset_t mask;
sigemptyset(&mask);
pthread_sigmask(SIG_SETMASK, &mask, NULL);