>>>>> "Christer" == Christer Ekholm <[EMAIL PROTECTED]> writes:

Christer> Very elegant. I like that.  Unfurtunately I can't get that to work on
Christer> HP-UX. A trace with tusc shows that the fcntl syscall on DATA always
Christer> fails with errno=9 (EBADF)

Christer> Not a big problem, the easy solution is to open a real file and lock
Christer> that one like above. That works. I just thought someone was interested
Christer> to know this.

I've been told that this fails on some platforms because you can't get an
exclusive lock on a file that's not open R/W, which seems completely silly to
me, trying to protect the programmer from themselves. :(

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to