diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2013-03-21 15:53:50 +0100 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2013-03-21 15:55:33 +0100 |
commit | 0003b4e04e1872bf48bb061a9b8865e516834e97 (patch) | |
tree | 08608ab748aa224b9636d912c5606b5bc9ccd366 /plugins/imudp/imudp.c | |
parent | 144f0858b7250ceffe4828712126146345e0e92a (diff) | |
download | rsyslog-0003b4e04e1872bf48bb061a9b8865e516834e97.tar.gz rsyslog-0003b4e04e1872bf48bb061a9b8865e516834e97.tar.bz2 rsyslog-0003b4e04e1872bf48bb061a9b8865e516834e97.zip |
bugfix: imudp scheduling parameters did affect main thread, not imudp
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=409
Conflicts:
ChangeLog
Diffstat (limited to 'plugins/imudp/imudp.c')
-rw-r--r-- | plugins/imudp/imudp.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/plugins/imudp/imudp.c b/plugins/imudp/imudp.c index 782d7bee..06e1471d 100644 --- a/plugins/imudp/imudp.c +++ b/plugins/imudp/imudp.c @@ -832,7 +832,6 @@ CODESTARTactivateCnfPrePrivDrop ABORT_FINALIZE(RS_RET_NO_RUN); } - setSchedParams(pModConf); finalize_it: ENDactivateCnfPrePrivDrop @@ -865,6 +864,15 @@ ENDfreeCnf */ BEGINrunInput CODESTARTrunInput + /* Note well: the setting of scheduling parameters will not work + * when we dropped privileges (if the user is not sufficently + * privileged, of course). Howerver, we can't change the + * scheduling params in PrePrivDrop(), as at that point our thread + * is not yet created. So at least as an interim solution, we do + * NOT support both setting sched parameters and dropping + * privileges within the same instance. + */ + setSchedParams(runModConf); iRet = rcvMainLoop(pThrd); ENDrunInput |