On 2015-05-26 17:23:27, CHORNY wrote:
Show quoted text> 1..9
> ok - fork() succeeded, child pid -1576
> # Running child pid -1576
> # inner waiting for primary lock to be held
> ok - outer got primary lock
> # outer waiting for secondary lock to be held
> ok - inner obtained secondary lock
> ok - outer released primary lock
> # outer waiting for primary lock to be held
> ok - inner obtained primary lock
> ok - inner released secondary lock
> ok - inner released primary lock
> (hangs)
>
This test script hangs also on FreeBSD systems:
$ perl5.20.2 -Mblib t/400-flockfiles-forks.t
1..9
ok - fork() succeeded, child pid 99827
ok - outer got primary lock
# Running child pid 99827
# outer waiting for secondary lock to be held
# inner waiting for primary lock to be held
ok - inner obtained secondary lock
ok - outer released primary lock
# outer waiting for primary lock to be held
ok - inner obtained primary lock
ok - inner released secondary lock
ok - inner released primary lock
# child 99827 reaped
(hangs)