[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to write a proper fork hook code?



Hello,

Just to summarize the discussion that happened on IRC: using a fork hook
will not actually work, since the lock is currently attached to the
peropen, and thus unlocking from the child would actually unlock from
the parent too.  What we think would work would be to make the server
record some token that identifies the client process (through the proc
server).  That way it can distinguish between the parent and the child,
since the child would have another process token.

Samuel


Reply to: