Process.daemon kills other threads

e$B;W$$=P$7$?$s$G$9$,!"8=:_$Ne(B Ruby 1.9 e$B$Ne(B Process.daemon
e$B$G$OB>e(B
e$B$N%9%l%C%I$,;`$K$^$9!#e(B

% ./ruby -e ’
Thread.new { loop { p :a; sleep 0.1 } }
sleep 1
Process.daemon(false, false)
sleep 10

:a
:a
:a
:a
:a
:a
:a
:a
:a
:a
%

e$BNc$($P>[email protected]$H!"$b$7;`$J$J$1$l$P!"<!$N%W%m%s%W%H$,=P$?$"$He(B
e$B$be(B 10e$BIC$/$i$$e(B :a e$B$,=PNO$5$lB3$1$k$O$:$G$9!#e(B

[ruby-dev:24030] e$B$GDs0F$7$?;~$K=q$$$?$H$*$j!"0U?^$H$7$F$O!“e(B
Process.daemon e$B$OB>$N%9%l%C%I$r;&$5$J$$$3$H$r4|BT$7$?$$$s$Ge(B
e$B$9$,!”$=$l$C$F2DG=$G$7$g$&$+e(B?

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs