Menu

#83 flock breaks in pop.pl on Solaris

open
nobody
Portability (5)
5
2012-07-18
2002-01-18
No

Could not
lock /usr/local/aMail/initialize_user/alex/folders.
Bad file number at /usr/local/aMail/program/pop.pl
line 154.

Line reads:
flock(MAILBOX,2) or die "Could not lock $db_path/
$amail_ID/folders. $!";

flock breaks on solaris when trying to lock a file
that is opened for only read. (IE &safe_open_read)

the 2 in flock should be LOCK_EX or LOCK_SH(consts are
always better to play with when it comes to
portability)

commented out locking as a quick fix, would need to
trace into safe_open_read to ensure locks can be
functional on Sol machines. Would imagine BSD has
simular issue.

-Jinxed

Discussion

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB