[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]

Re: [PATCH 5.5.63] warn on flock() on closed handle



Greg Bacon <gbacon@itsc.uah.edu> wrote

   [ second version of closed handle patch ]

Note also that if you do flock() on a closed handle, it returns 0 but
does not set $!.    $! ought to be set in this case, presumably to EBADF.

( And I note the minor curiosity that the return really is 0, rather
  than the more conventional FALSE, i.e. string '' and number 0. )

Also, the new message is in the wrong place in perldiag.


Mike Guy


[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]