^C on system()


#1

e$B0J2<$N$h$&$J%W%m%0%i%$r<B9T$9$k$H!"e(B^C e$B$G%W%m%0%i%$r=*N;$9e(B
e$B$k$N$,:$Fq$G$9!#e(B

% ./ruby -ve ’
loop {
p system(“sleep 1”)
}’
ruby 1.9.0 (2007-06-15 patchlevel 0) [i686-linux]
^Cfalse
^Cfalse
^Cfalse
^Cfalse
^Cfalse
^Cfalse

system() e$BCf$Ke(B ^C e$B$,e(B ruby
e$B%W%m%;%9<+BN$KBP$7$F8z$+$J$$$N$O$Ie(B
e$B$&$7$F$J$s$G$7$g$&$+e(B?