Re: lockfiles & fork()

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Junio C Hamano
Date: Friday, October 27, 2006 - 6:41 pm

Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:


Depends on the arrangement between the parent and child
regarding who is responsible for unlocking.  If child expects to
work under the safety of the lock the parent prepared, and also
relies on the parent to wait for it and then unlock to ensure
that safety for the child, then I think the problem is simple.

How about defining a function in lockfile.c to assign NULL to
lock_file_list and call that immediately after fork() in the
child?

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
lockfiles &amp; fork(), Johannes Schindelin, (Fri Oct 27, 6:21 pm)
Re: lockfiles & fork(), Junio C Hamano, (Fri Oct 27, 6:41 pm)
Re: lockfiles &amp; fork(), Linus Torvalds, (Fri Oct 27, 6:52 pm)
Re: lockfiles &amp; fork(), Florian Weimer, (Sat Oct 28, 6:30 am)