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:53:50 +0100 |
commit | 81e45885ac5688318d8ddb00937b43d11c26ee0f (patch) | |
tree | 38fa19a996ba69b028ec86feb4282b7430543e9d /plugins/imudp/imudp.c | |
parent | b96674bbc9439f107c700d75e69268ee75e0387e (diff) | |
download | rsyslog-81e45885ac5688318d8ddb00937b43d11c26ee0f.tar.gz rsyslog-81e45885ac5688318d8ddb00937b43d11c26ee0f.tar.bz2 rsyslog-81e45885ac5688318d8ddb00937b43d11c26ee0f.zip |
bugfix: imudp scheduling parameters did affect main thread, not imudp
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=409
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 dde8f105..7e11a80e 100644 --- a/plugins/imudp/imudp.c +++ b/plugins/imudp/imudp.c @@ -853,7 +853,6 @@ CODESTARTactivateCnfPrePrivDrop ABORT_FINALIZE(RS_RET_NO_RUN); } - setSchedParams(pModConf); finalize_it: ENDactivateCnfPrePrivDrop @@ -886,6 +885,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 |