summaryrefslogtreecommitdiffstats
path: root/signal.c
Commit message (Collapse)AuthorAgeFilesLines
* * include/ruby/ruby.h (rb_bug_errno): declared.akr2009-11-241-1/+1
| | | | | | | | | | | | | | | | * include/ruby/intern.h (rb_strerrno): declaration removed. * error.c (rb_strerrno): make it static. return NULL for unknown errors. (rb_bug_errno): defined. * thread_pthread.c: use rb_bug_errno. * signal.c (ruby_signal): use rb_bug_errno. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25904 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix typos.akr2009-11-031-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25635 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * signal.c (interrupt_init): nodoc.nobu2009-09-131-0/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24896 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * signal.c (rb_f_kill): added rdoc about exceptions.nobu2009-09-131-0/+10
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24895 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * thread.c: rename functions which require a parameterko12009-06-081-2/+2
| | | | | | | | | | | | | | | "rb_thread_t *", the prefix to be rb_threadptr_ instead of rb_thread_. * thread.c (rb_thread_add_event_hook(), rb_thread_remove_event_hook): change the parameter type from rb_thread_t * to VALUE. * eval.c, eval_error.c, eval_intern.h, signal.c, vm_core.h, vm_eval.c: ditto. * include/ruby/intern.h: remove decl of rb_thread_signal_raise() and rb_thread_signal_exit(). git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23651 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * signal.c (sig_trap): suppress warnings.nobu2009-03-101-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22878 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * signal.c (rb_disable_interrupt, rb_enable_interrupt): seenobu2009-02-241-2/+2
| | | | | | | USE_TRAP_MASK. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22588 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* stripped trailing spaces.nobu2009-02-221-4/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22552 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * signal.c (register_sigaltstack): ignore sigaltstack error.akr2009-02-061-2/+1
| | | | | | | It fails on OpenBSD 4.4 when pthread library is linked. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22091 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * cont.c (rb_fiber_current), dln.c (dln_print_undef, dln_undefined),nobu2009-02-011-2/+2
| | | | | | | | | | | eval.c (rb_iterator_p, rb_need_block), load.c: (Init_load), ruby.c (uscore_get, rb_f_chop), st.c (stat_col), signal.c (rb_signal_buff_size, ruby_sig_finalize), thread.c (rb_thread_sleep_forever, rb_thread_sleep_deadly, rb_thread_alone): protoized. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21929 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * signal.c (trap_handler): also accepts symbols. [ruby-dev:37823]nobu2009-01-231-0/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21746 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * symbian/README.SYMBIAN: symbian support added. great appreciatematz2009-01-151-3/+3
| | | | | | to <alexandre.zavorine at symbian.com>. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21513 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * signal.c (rb_signal_buff_size): defined for check whether signalnaruse2009-01-011-0/+6
| | | | | | | | | is in the buffer or not. * thread_pthread.c (thread_timer): don't exit the loop when signal is in the buffer. [ruby-dev:37637] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21265 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/curses/curses.c (window_getch): avoid ISPRINT() macro whichmatz2008-12-041-2/+6
| | | | | | | | has an issue with OpenSolaris. [ruby-core:20189] * signal.c (ruby_signal): EINVAL from sigaction(2) is not a bug. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20482 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * signal.c (register_sigaltstack): no need to define on non-sigaltstackusa2008-12-011-2/+4
| | | | | | | | platform. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20433 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * signal.c (register_sigaltstack): stores alt stack for debugnobu2008-11-271-14/+10
| | | | | | | purpose. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20375 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * signal.c (ruby_sigaction_t): added.nobu2008-11-271-4/+8
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20374 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * signal.c (ALT_STACK_SIZE): default minimum size is insufficientnobu2008-11-271-2/+2
| | | | | | | for method calls. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20373 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c (ruby_stack_check): no check if using sigaltstack.nobu2008-11-271-4/+15
| | | | | | | | | | | | | | | | * signal.c (register_sigaltstack): minimum size is insufficient for method calls. * signal.c (sigsegv): handles stack overflow if possible. * thread.c (ruby_thread_stack_overflow): helper function to raise sysstack_error. * thread_pthread.c (ruby_stack_overflowed_p): checks for stack overflow. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20372 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * signal.c (register_sigaltstack): should not add externalmatz2008-11-241-8/+10
| | | | | | variable (with some cosmetic changes). [ruby-dev:37158] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20341 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * signal.c (default_handler, Init_signal): compile error ifyugui2008-11-231-0/+4
| | | | | | | USE_SIGALTSTACK is not defined. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20334 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * signal.c (ALT_STACK_SIZE): 4KB is not enough on Mac OS X.yugui2008-11-231-0/+4
| | | | | | Uses SIGSTKSZ. this fixes [ruby-core:20040]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20331 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * signal.c (register_sigaltstack): use alternative stack formatz2008-11-211-1/+35
| | | | | | | | SIGSEGV to avoid uncaught stack overflow. based on a patch from Hiro Yoshioka <hyoshiok at miraclelinux.com> in [ruby-dev:37134]. [ruby-dev:36993] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20293 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * signal.c (signal_buff): made static. a patch by Tadashi Saitonobu2008-10-241-1/+1
| | | | | | | <shiba AT mail2.accsnet.ne.jp> at [ruby-dev:36915] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19928 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dln.c: Ruby no longer supports MacOS 9 or before.yugui2008-10-041-5/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * eval.c: ditto. * eval_intern.h: ditto. * ext/extmk.rb: ditto. * ext/tk/sample/tkextlib/treectrl/demo.rb: ditto. * ext/tk/stubs.c: ditto. * file.c: ditto. * hash.c: ditto. * include/ruby/defines.h: ditto. * ruby.c: ditto. * signal.c: ditto. * vm_core.h: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19680 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * djgpp/GNUmakefile.in: removed. Ruby no longer supports djgpp.yugui2008-10-041-5/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * djgpp/README.djgpp: ditto. * djgpp/config.hin: ditto. * djgpp/config.sed: ditto. * djgpp/configure.bat: ditto. * djgpp/mkver.sed: ditto. * ext/Setup.dj: ditto. * dln.c: removed djgpp supports. * file.c: ditto. * gc.c: ditto. * io.c: ditto. * process.c: ditto. * ruby.c: ditto. * signal.c: ditto. * util.c: ditto. * vm_core.h: ditto. * lib/fileutils.rb: ditto. * lib/mkmf.rb: ditto. * ext/socket/socket.c: ditto. * test/fileutils/test_fileutils.rb: ditto. * test/ruby/test_env.rb: ditto. * test/ruby/test_path.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19678 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/node.h, node.h: move node.h from include path.ko12008-09-231-1/+0
| | | | | | | | | | | | | | This change stop to install node.h beacuase of saving ABI (node.h will be changed. Extensions should not depends on this file). * blockinlining.c, class.c, compile.c, debug.h, enum.c, gc.c, iseq.c, parse.y, ruby.c, signal.c, variable.c, vm.c, vm_core.h, vm_dump.c: ditto. * ext/ripper/depend: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19500 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * signal.c (signal_exec): execute rb_eval_cmd() directly.ko12008-09-231-7/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19497 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * signal.c (signal_exec): fix to use rb_proc_call().ko12008-09-231-5/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19488 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_core.h (struct rb_vm_struct): replaced signal staff with trapnobu2008-09-041-45/+26
| | | | | | | | | | | | | | | | | | | | staff. * signal.c (signal_buff): per process resouce now. * signal.c (trap_list): moved to VM. * signal.c (rb_get_next_signal): reverted. * signal.c (rb_trap_exit): trap_pending_list was no longer used. * thread.c (timer_thread_function): delivers buffered per-process signals to each VMs. * vm.c (rb_vm_mark): marks trap_list. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19119 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/signal.h: removed.ko12008-09-031-24/+17
| | | | | | | | | | | | | | | * common.mk, class.c, eval.c, eval_intern.h, file.c, gc.c, hash.c, io.c, process.c, signal.c: vm_core.h: ditto. Some unused external global variables are also removed. (rb_prohibit_interrupt, rb_trap_immediate, rb_trap_pending, rb_thread_critical) * ext/openssl/ossl_ssl.c, ext/openssl/ossl_x509store.c, ext/readline/readline.c, ext/socket/depend, ext/socket/socket.c: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19080 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * signal.c (signal_exec, trap_handler): trap accepts a string asnobu2008-07-161-11/+9
| | | | | | | command. [ruby-dev:35533] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18084 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c (ruby_gc_stress): moved to rb_objspace_t.nobu2008-06-131-3/+3
| | | | | | | | | * gc.c (gc_stress_get, gc_stress_set): VM local attribute. * signal.c (sigsegv): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17153 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* update Signal.list rdoc.akr2008-06-101-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17087 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * signal.c (esignal_signo): fix SignalException#signo which returnedmame2008-05-301-4/+15
| | | | | | | | | | nil absolutely. * signal.c (esignal_init): always prepend "SIG" to a string that is returned by SignalException#signm. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16706 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * signal.c (esignal_init): handle a non-integer argument correctly,mame2008-05-291-0/+1
| | | | | | | allowing SignalException.new(:INT). git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16688 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c, signal.c, thread.c, thread_win32.c, include/ruby/intern.h:nobu2008-04-261-1/+4
| | | | | | | suppress warnings. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16204 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * error.c (builtin_types), signal.c (siglist), st.c (primes),nobu2008-04-261-6/+10
| | | | | | | struct.c (ref_func), time.c (months): constified. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16199 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * signal.c: sorry, commit miss.usa2008-02-261-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15606 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2008-02-26usa2008-02-261-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15605 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (sigsetmask): check when signal semantics is not POSIX.nobu2008-02-141-8/+14
| | | | | | | | * signal.c (USE_TRAP_MASK): set true if sigprocmask or sigsetmask is available. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15476 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * $Date$ keyword removed to avoid inclusion of locale dependentakr2008-01-061-1/+0
| | | | | | | string. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14912 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * insnhelper.ci, vm.c, vm_core.h: change interface ofko12007-12-201-1/+1
| | | | | | | | | | | | vm_invoke_block() to specify block ptr. [ruby-talk:266422] * cont.c, eval_jump.ci, insns.def, proc.c, signal.c, thread.c: apply above change. * bootstraptest/test_knownbug.rb: move fixed bug. * bootstraptest/test_block.rb: ditto. and add a test. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14356 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * signal.c (posix_signal): return value.akr2007-12-081-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14137 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * signal.c (ruby_signal): use SA_SIGINFO if available.matz2007-11-301-2/+8
| | | | | | [ ruby-Patches-6418 ] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14057 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * signal.c (trap_signm): SIGVTALRM no longer used for greenmatz2007-11-301-6/+12
| | | | | | | | | thread. [ruby-talk:281318] * signal.c (ruby_sig_finalize): do not install SIG_DFL handler if previous handler is sighandler(). git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14056 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_core.h (rb_vm_struct): fix typo: bufferd -> buffered.matz2007-09-281-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13546 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * encoding.c: provide basic features for M17N.matz2007-08-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * parse.y: encoding aware parsing. * parse.y (pragma_encoding): encoding specification pragma. * parse.y (rb_intern3): encoding specified symbols. * string.c (rb_str_length): length based on characters. for older behavior, bytesize method added. * string.c (rb_str_index_m): index based on characters. rindex as well. * string.c (succ_char): encoding aware succeeding string. * string.c (rb_str_reverse): reverse based on characters. * string.c (rb_str_inspect): encoding aware string description. * string.c (rb_str_upcase_bang): encoding aware case conversion. downcase, capitalize, swapcase as well. * string.c (rb_str_tr_bang): tr based on characters. delete, squeeze, tr_s, count as well. * string.c (rb_str_split_m): split based on characters. * string.c (rb_str_each_line): encoding aware each_line. * string.c (rb_str_each_char): added. iteration based on characters. * string.c (rb_str_strip_bang): encoding aware whitespace stripping. lstrip, rstrip as well. * string.c (rb_str_justify): encoding aware justifying (ljust, rjust, center). * string.c (str_encoding): get encoding attribute from a string. * re.c (rb_reg_initialize): encoding aware regular expression * sprintf.c (rb_str_format): formatting (i.e. length count) based on characters. * io.c (rb_io_getc): getc to return one-character string. for older behavior, getbyte method added. * ext/stringio/stringio.c (strio_getc): ditto. * io.c (rb_io_ungetc): allow pushing arbitrary string at the current reading point. * ext/stringio/stringio.c (strio_ungetc): ditto. * ext/strscan/strscan.c: encoding support. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13261 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * blockinlining.c: remove "yarv" prefix.ko12007-07-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * array.c, numeric.c: ditto. * insnhelper.ci, insns.def, vm_evalbody.ci: ditto. * yarvcore.c: removed. * yarvcore.h: renamed to core.h. * cont.c, debug.c, error.c, process.c, signal.c : ditto. * ext/probeprofiler/probeprofiler.c: ditto. * id.c, id.h: added. * inits.c: ditto. * compile.c: rename internal functions. * compile.h: fix debug flag. * eval.c, object.c, vm.c: remove ruby_top_self. use rb_vm_top_self() instead. * eval_intern.h, eval_load: ditto. * gc.c: rename yarv_machine_stack_mark() to rb_gc_mark_machine_stack(). * insnhelper.h: remove unused macros. * iseq.c: add iseq_compile() to create iseq object from source string. * proc.c: rename a internal function. * template/insns.inc.tmpl: remove YARV prefix. * thread.c: * vm.c (rb_iseq_eval): added. * vm.c: move some functions from yarvcore.c. * vm_dump.c: fix to remove compiler warning. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12741 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * debug.c (ruby_set_debug_option): separated from main.c.nobu2007-06-291-4/+4
| | | | | | | * gc.c (ruby_gc_stress), signal.c (ruby_enable_coredump): prefixed. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12665 b2dd03c8-39d4-4d8f-98ff-823fe69b080e