Re: fork dies

Eric Hodel <[email protected]>
Newsgroups gmane.comp.apache.mod-ruby
Organization Eric Conspiracy Secret Labs
Message-ID <[email protected]>
Juha-Jarmo Heinonen ([email protected]) wrote:

> >You'd probably have to turn it into a daemon:
> >
> >http://ruby-talk.org/blade/87467
> >
> >For the first line, it should instead be fork do ... end if you want 
> >the
> >parent process to stay around (probably).
> >
> 
> Thanks for the info.
> AFAIK {..} is an alias for do..end when used as a block.

Yes, and I find it 'ugly' :)

I really like the beauty of "fork and exit" as opposed to "exit if
fork", FWIW :)

A really good example of the beauty of do ... end vs { ... } is in the
ruby tests, there are constructs like:

Windows.dont do
  ...
end

-- 
Eric Hodel - [email protected] - http://segment7.net
All messages signed with fingerprint:
FEC2 57F1 D465 EB15 5D6E  7C11 332A 551C 796C 9F04
signature.asc (application/pgp-signature, 187 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (FreeBSD)

iD8DBQFAVlv4MypVHHlsnwQRAv8qAKDNOYPCZjcJ540R+BQqzzfFlYDh0wCg9ChT
dRx7LWWhx9yDde+vV00PHTk=
=g08B
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.