Commit 59da9aaa authored by Leigh B Stoller's avatar Leigh B Stoller

Add TakeLock() to steal the lock from another process (as in the parent

process that hands off).
parent 2019b432
......@@ -551,6 +551,14 @@ sub UnLock($)
$self->{'STITCHLOCKED'} = 0;
return 0;
}
sub TakeLock($)
{
my ($self) = @_;
$self->{'LOCKED'} = $$;
$self->{'STITCHLOCKED'} = $$;
return 0;
}
#
# Wait for lock with timeout (in seconds).
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment