[SCM] Samba Shared Repository - branch master updated

[email protected] (Martin Schwenke)
Newsgroups gmane.network.samba.cvs
Message-ID <[email protected]>
The branch, master has been updated
       via  6c6d63c ctdb-locking: Reset real-time priority in lock helper
      from  318a8ec Update .ycm_extra_conf.py

https://git.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 6c6d63c04497fdfdbe665508f2a503f2392dc526
Author: Amitay Isaacs <[email protected]>
Date:   Thu Nov 17 16:10:51 2016 +1100

    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 <[email protected]>
    Reviewed-by: Martin Schwenke <[email protected]>
    
    Autobuild-User(master): Martin Schwenke <[email protected]>
    Autobuild-Date(master): Fri Nov 18 10:18:27 CET 2016 on sn-devel-144

-----------------------------------------------------------------------

Summary of changes:
 ctdb/server/ctdb_lock_helper.c | 2 ++
 1 file changed, 2 insertions(+)


Changeset truncated at 500 lines:

diff --git a/ctdb/server/ctdb_lock_helper.c b/ctdb/server/ctdb_lock_helper.c
index e41d230..8aa0870 100644
--- a/ctdb/server/ctdb_lock_helper.c
+++ b/ctdb/server/ctdb_lock_helper.c
@@ -166,6 +166,8 @@ int main(int argc, char *argv[])
 	int ppid;
 	const char *lock_type;
 
+	reset_scheduler();
+
 	progname = argv[0];
 
 	if (argc < 5) {


-- 
Samba Shared Repository
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.