On Tue, 2009-04-14 at 15:04 -0400, Arjun Nair wrote:
> Can't we use flock and a semaphore file to control access to the
> ".new" file? Or would that not work?

I expect it would work, but mktemp is simpler and would work also. 

Except that mktemp doesn't work -- I overlooked the note at the bottom
of the manual page, "Never use  mktemp()."  It turns out that the better
method is to use mkstemp.  (mkstemp is in Posix, so we shouldn't have
any portability problems.)  I'll post a revision soon...

Dale


_______________________________________________
sipx-dev mailing list
[email protected]
List Archive: http://list.sipfoundry.org/archive/sipx-dev
Unsubscribe: http://list.sipfoundry.org/mailman/listinfo/sipx-dev

Reply via email to