mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* signal.c: parenthesize macro arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30416 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b2d68b2826
commit
fc38c70ce9
2 changed files with 6 additions and 2 deletions
|
@ -1,3 +1,7 @@
|
|||
Wed Dec 29 10:06:51 2010 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* signal.c: parenthesize macro arguments.
|
||||
|
||||
Wed Dec 29 07:22:15 2010 Eric Hodel <drbrain@segment7.net>
|
||||
|
||||
* lib/rake/rdoctask.rb: Deprecate in favor of rdoc/task.
|
||||
|
|
4
signal.c
4
signal.c
|
@ -354,7 +354,7 @@ VALUE
|
|||
rb_f_kill(int argc, VALUE *argv)
|
||||
{
|
||||
#ifndef HAS_KILLPG
|
||||
#define killpg(pg, sig) kill(-(pg), sig)
|
||||
#define killpg(pg, sig) kill(-(pg), (sig))
|
||||
#endif
|
||||
int negative = 0;
|
||||
int sig;
|
||||
|
@ -508,7 +508,7 @@ posix_signal(int signum, sighandler_t handler)
|
|||
}
|
||||
|
||||
#else /* !POSIX_SIGNAL */
|
||||
#define ruby_signal(sig,handler) (/* rb_trap_accept_nativethreads[sig] = 0,*/ signal((sig),(handler)))
|
||||
#define ruby_signal(sig,handler) (/* rb_trap_accept_nativethreads[(sig)] = 0,*/ signal((sig),(handler)))
|
||||
#if 0 /* def HAVE_NATIVETHREAD */
|
||||
static sighandler_t
|
||||
ruby_nativethread_signal(int signum, sighandler_t handler)
|
||||
|
|
Loading…
Reference in a new issue