in reply to Re: flock, not unflockingin thread flock, not unflocking
That isn't 'more general', that is the 'correct way'. These constants shouldn't be hard coded. Use the Fcntl module to import your systems constants.
Cheers, KM