Repository
http://svn.akelos.org/trunk
/trunk
by
bermi
on
2009-10-23 19:13
(about 1 month ago)
Adding Akelos version of pcntl_fork for preventing forked processes from killing the database connection.
See http://dev.mysql.com/doc/refman/5.0/en/gone-away.html
This is done by closing the connection before forking and reconnecting on the child & parent process.
Returns the same as pcntl_fork (PID of the children to the parent, 0 to the children process and -1 if fails).