[前][次][番号順一覧][スレッド一覧][生データ]

yarv-dev:672

From: sheepman <sheepman sheepman.sakura.ne.jp>
Date: Tue, 11 Oct 2005 20:17:09 +0900
Subject: [yarv-dev:672] 'nil while true' isn't terminated by SIGINT

こんばんは、sheepman です。

yarv 0.3.2 において、

  nil while true

というコードを実行すると、SIGINT を送っても終了しないようです。
SIGTERM だと終了します。これはこういうものなのでしょうか。

  loop {}

というコードは SIGINT で終了します。

$ ./miniruby -v
ruby 1.9.0 (2005-09-25) [i686-linux]
YARVCore 0.3.2 (rev: 278) [opts: ]

$ ./miniruby -e 'loop {}'
-e:1:in `loop': Interrupt
        from -e:1:in `<main>'

$ ./miniruby -e 'nil while true' &
[1] 2036
$ kill -INT 2036
$ kill -TERM 2036
[1]  + terminated  ./miniruby -e 'nil while true'

Vine Linux 3.1
glibc-2.3.3
gcc 3.3.2

-- 
sheepman / TAMURA Takashi
sheepman sheepman.sakura.ne.jp http://sheepman.parfait.ne.jp/
   

--
ML: yarv-dev quickml.atdot.net
使い方: http://www.atdot.net/~ko1/quickml

[前][次][番号順一覧][スレッド一覧][生データ]

->     672 2005-10-11 20:17 [sheepman sheepman.sa] 'nil while true' isn't terminated by SIGINT
       673 2005-10-11 20:29 ┗[ko1 atdot.net       ]                                       
       674 2005-10-11 18:59  ┣[shudo computer.org  ]                                     
       675 2005-10-11 21:04  ┗[shiro lava.net      ]