mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-30 15:14:17 +00:00
add -u and -g command line args to set user and group.
properly handle portability for mlockall and setrlimit Tested on linux, Freebsd, solaris, mac. FSCORE-47 git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6033 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
20380ea307
commit
b382c0a41f
5 files changed
+238
-8
No files matched your search
@@ -60,6 +60,19 @@ typedef apr_os_thread_t switch_thread_id_t;
|
||||
#include <sys/mman.h>
|
||||
#endif
|
||||
|
||||
#ifndef WIN32
|
||||
/* setuid, setgid */
|
||||
#include <unistd.h>
|
||||
|
||||
/* getgrnam, getpwnam */
|
||||
#include <pwd.h>
|
||||
#include <grp.h>
|
||||
|
||||
#ifdef HAVE_SYS_RESOURCE_H
|
||||
#include <sys/resource.h>
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/* #define DEBUG_ALLOC */
|
||||
#define DO_EVENTS
|
||||
|
||||
|
||||
Reference in new issue
Block a user