use file locks to keep multiple concurrent copies of freeswitch from running at the same time (FSCORE-14)

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6575 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris committed 2007-12-08 03:41:00 +00:00
1 parent 501fd22d8a
commit 1b63fa5503
3 files changed
+67 -11

No files matched your search

+5
View File
@@ -328,6 +328,11 @@ SWITCH_DECLARE(switch_status_t) switch_file_close(switch_file_t * thefile)
return apr_file_close(thefile);
}
SWITCH_DECLARE(switch_status_t) switch_file_lock(switch_file_t * thefile, int type)
{
return apr_file_lock(thefile, type);
}
SWITCH_DECLARE(switch_status_t) switch_file_rename(const char *from_path, const char *to_path, switch_memory_pool_t *pool)
{
return apr_file_rename(from_path, to_path, pool);