jeremy wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
>> You write that the DB socket is closed when the forked process exits.
>> So I'm guessing that is my problem.
>>
>> Any ideas from anybody are much appreciated -- I'm stumped. How can I
>> do AR work in a forked process without borking my application?
> 
> Open a new connection in the forked child.
> 
> jeremy
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.2 (Darwin)
> 
> iD8DBQFDmd9qAQHALep9HFYRAp0wAJ49xiLkudW6Rh23hN639SONCp8KLwCfVesF
> krD7JqkztyWZXPqBuaxCP7M=
> =nhjx
> -----END PGP SIGNATURE-----

Works for me

    ActiveRecord::Base.connection.reconnect!

Was having a problem with simple daemon and this fixed it.
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to