mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-16 23:08:32 +00:00
Allow priority to be set in addition to -U / -G (bug #2173)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3551 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1632,7 +1632,9 @@ int main(int argc, char *argv[])
|
|||||||
ast_verbose("Running as group '%s'\n", rungroup);
|
ast_verbose("Running as group '%s'\n", rungroup);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (set_priority(option_highpriority)) {
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
if (runuser) {
|
if (runuser) {
|
||||||
struct passwd *pw;
|
struct passwd *pw;
|
||||||
pw = getpwnam(runuser);
|
pw = getpwnam(runuser);
|
||||||
@@ -1744,10 +1746,6 @@ int main(int argc, char *argv[])
|
|||||||
signal(SIGCHLD, child_handler);
|
signal(SIGCHLD, child_handler);
|
||||||
signal(SIGPIPE, SIG_IGN);
|
signal(SIGPIPE, SIG_IGN);
|
||||||
|
|
||||||
if (set_priority(option_highpriority)) {
|
|
||||||
printf(term_quit());
|
|
||||||
exit(1);
|
|
||||||
}
|
|
||||||
if (init_logger()) {
|
if (init_logger()) {
|
||||||
printf(term_quit());
|
printf(term_quit());
|
||||||
exit(1);
|
exit(1);
|
||||||
|
|||||||
Reference in New Issue
Block a user