diff options
author | koitsu <koitsu@FreeBSD.org> | 2008-10-20 21:58:49 +0800 |
---|---|---|
committer | koitsu <koitsu@FreeBSD.org> | 2008-10-20 21:58:49 +0800 |
commit | 3887624486d1e52fbce2512a22c6b549034f1e90 (patch) | |
tree | fa7a80a6a305cb64a4c5e7d3b4eff08e5c3aaa0d /net/asterisk | |
parent | f15d9d4cb627b74cb2a6f87179693ce47c01883c (diff) | |
download | freebsd-ports-gnome-3887624486d1e52fbce2512a22c6b549034f1e90.tar.gz freebsd-ports-gnome-3887624486d1e52fbce2512a22c6b549034f1e90.tar.zst freebsd-ports-gnome-3887624486d1e52fbce2512a22c6b549034f1e90.zip |
Fix for asterisk retaining parent process prio/rtprio.
PR: ports/127829
Submitted by: Wojciech Puchar <wojtek@tensor.gdynia.pl>
Diffstat (limited to 'net/asterisk')
-rw-r--r-- | net/asterisk/files/patch-main::utils.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/net/asterisk/files/patch-main::utils.c b/net/asterisk/files/patch-main::utils.c new file mode 100644 index 000000000000..9bba111de434 --- /dev/null +++ b/net/asterisk/files/patch-main::utils.c @@ -0,0 +1,20 @@ +--- main/utils.c.orig 2008-05-29 19:20:16.000000000 +0200 ++++ main/utils.c 2008-10-03 21:36:14.000000000 +0200 +@@ -914,8 +914,7 @@ + pthread_attr_init(attr); + } + +-#ifdef __linux__ +- /* On Linux, pthread_attr_init() defaults to PTHREAD_EXPLICIT_SCHED, ++ /* On Linux and FreeBSD, pthread_attr_init() defaults to PTHREAD_EXPLICIT_SCHED, + which is kind of useless. Change this here to + PTHREAD_INHERIT_SCHED; that way the -p option to set realtime + priority will propagate down to new threads by default. +@@ -924,7 +923,6 @@ + the priority afterwards with pthread_setschedparam(). */ + if ((errno = pthread_attr_setinheritsched(attr, PTHREAD_INHERIT_SCHED))) + ast_log(LOG_WARNING, "pthread_attr_setinheritsched: %s\n", strerror(errno)); +-#endif + + if (!stacksize) + stacksize = AST_STACKSIZE; |