[Asterisk-cvs] asterisk asterisk.c,1.109,1.110
markster at lists.digium.com
markster at lists.digium.com
Sat Jul 31 16:39:04 CDT 2004
Update of /usr/cvsroot/asterisk
In directory localhost.localdomain:/tmp/cvs-serv8168
Modified Files:
asterisk.c
Log Message:
Allow priority to be set in addition to -U / -G (bug #2173)
Index: asterisk.c
===================================================================
RCS file: /usr/cvsroot/asterisk/asterisk.c,v
retrieving revision 1.109
retrieving revision 1.110
diff -u -d -r1.109 -r1.110
--- asterisk.c 31 Jul 2004 02:23:27 -0000 1.109
+++ asterisk.c 31 Jul 2004 20:25:07 -0000 1.110
@@ -1632,7 +1632,9 @@
ast_verbose("Running as group '%s'\n", rungroup);
}
-
+ if (set_priority(option_highpriority)) {
+ exit(1);
+ }
if (runuser) {
struct passwd *pw;
pw = getpwnam(runuser);
@@ -1744,10 +1746,6 @@
signal(SIGCHLD, child_handler);
signal(SIGPIPE, SIG_IGN);
- if (set_priority(option_highpriority)) {
- printf(term_quit());
- exit(1);
- }
if (init_logger()) {
printf(term_quit());
exit(1);
More information about the svn-commits
mailing list