mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-24 21:22:09 +00:00
FS-8195 Compatibility with Solaris 11 process privileges
Now the daemon manages its privileges correctly, so that -rp, -u, -g and -lp can be supported, also in a Solaris zone. Also fixed a problem that switch_log_printf() was used before the logger was initialized, so the messages were sent to nowhere.
This commit is contained in:
@@ -1089,6 +1089,10 @@ int main(int argc, char *argv[])
|
||||
reincarnate_protect(reincarnate_reexec ? argv : NULL);
|
||||
#endif
|
||||
|
||||
if (switch_core_set_process_privileges() < 0) {
|
||||
return 255;
|
||||
}
|
||||
|
||||
switch (priority) {
|
||||
case 2:
|
||||
set_realtime_priority();
|
||||
|
||||
Reference in New Issue
Block a user