mirror of
https://github.com/samba-team/samba.git
synced 2025-08-21 09:49:28 +03:00
ctdb-locking: Reset real-time priority in lock helper
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12392
Earlier we were relying on SCHED_RESET_ON_FORK to reset the priority of lock
helper processes. Since SCHED_RESET_ON_FORK support has been removed, the
scheduling priority of child processes created using vfork() need to be reset
explicitly in the helper processes.
Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
Autobuild-User(master): Martin Schwenke <martins@samba.org>
Autobuild-Date(master): Fri Nov 18 10:18:27 CET 2016 on sn-devel-144
(cherry picked from commit 6c6d63c044
)
This commit is contained in:
committed by
Karolin Seeger
parent
c6eebf79f9
commit
4ed410e7bd
@ -129,6 +129,8 @@ int main(int argc, char *argv[])
|
||||
int ppid;
|
||||
const char *lock_type;
|
||||
|
||||
reset_scheduler();
|
||||
|
||||
progname = argv[0];
|
||||
|
||||
if (argc < 5) {
|
||||
|
Reference in New Issue
Block a user