mirror_corosync/exec
Andrew Price 86012ebb45 Main: Call mlockall after fork
Man page of mlockall is clear:
Memory locks are not inherited by a child created via fork(2) and are
automatically removed (unlocked) during an execve(2) or when the
process terminates.

So calling mlockall before corosync_tty_detach is noop when corosync is
executed as a daemon (corosync -f was not affected).

This regression is caused by ed7d054e55
(setprio for logsys/qblog was correct, mlockall was not).

Solution is to move corosync_mlockall call on correct place.

Signed-off-by: Andrew Price <anprice@redhat.com>
Reviewed-by: Christine Caulfield <ccaulfie@redhat.com>
Reviewed-by: Jan Friesse <jfriesse@redhat.com>
2017-04-25 14:50:04 +02:00
..
.gitignore Add .gitignore files. 2010-10-21 07:43:46 -07:00
apidef.c sync: kill evil and syncv1 in one shot 2012-03-09 11:15:08 +01:00
apidef.h Update copyright header dates in exec directory 2012-02-13 17:05:04 -07:00
cfg.c list: Replace for_each by safe version where need 2016-10-27 14:56:52 +02:00
cmap.c Remove redundant header file inclusion 2016-12-05 09:59:08 +01:00
coroparse.c coroparse: Use readdir instead of readdir_r 2017-04-20 08:53:54 +02:00
cpg.c Remove redundant header file inclusion 2016-12-05 09:59:08 +01:00
cs_queue.h Update copyright header dates in exec directory 2012-02-13 17:05:04 -07:00
fsm.h Make logging of WD and MON service correct 2012-08-16 14:45:15 +02:00
icmap.c list: Replace for_each by safe version where need 2016-10-27 14:56:52 +02:00
ipc_glue.c list: Replace for_each by safe version where need 2016-10-27 14:56:52 +02:00
logconfig.c logconfig: Do not overwrite logger_subsys priority 2017-03-10 09:09:42 +01:00
logconfig.h list: Replace uses of list.h with qblist.h 2016-10-27 14:56:52 +02:00
logsys.c list: Replace uses of list.h with qblist.h 2016-10-27 14:56:52 +02:00
main.c Main: Call mlockall after fork 2017-04-25 14:50:04 +02:00
main.h Reload: Make coroparse use a designated icmap hash table 2013-09-12 16:09:06 +01:00
Makefile.am totem: Add Kronosnet transport. 2016-10-11 10:09:42 +01:00
mon.c list: Replace uses of list.h with qblist.h 2016-10-27 14:56:52 +02:00
pload.c build: bring SOLARIS up to the same standard as other OSes 2012-08-30 15:00:27 +02:00
quorum.c Remove redundant header file inclusion 2016-12-05 09:59:08 +01:00
quorum.h Update copyright header dates in exec directory 2012-02-13 17:05:04 -07:00
schedwrk.c schedwrk: Cleanup and make it work on PPC BE 2016-05-17 16:29:25 +02:00
schedwrk.h Update copyright header dates in exec directory 2012-02-13 17:05:04 -07:00
service.c service: Fix memleak in service_unlink_and_exit 2013-06-21 11:21:29 +02:00
service.h service: remove leftovers from mt corosync 2012-08-09 15:10:16 +02:00
sync.c Remove redundant header file inclusion 2016-12-05 09:59:08 +01:00
sync.h sync: kill evil and syncv1 in one shot 2012-03-09 11:15:08 +01:00
timer.c Update copyright header dates in exec directory 2012-02-13 17:05:04 -07:00
timer.h Update copyright header dates in exec directory 2012-02-13 17:05:04 -07:00
totemconfig.c totemconfig: Prefer nodelist over bindnetaddr 2017-04-11 11:19:31 +02:00
totemconfig.h totemconfig: Prefer nodelist over bindnetaddr 2017-04-11 11:19:31 +02:00
totemip.c list: Replace for_each by safe version where need 2016-10-27 14:56:52 +02:00
totemknet.c totemknet: Handle logpipe creation failure 2017-04-20 08:53:49 +02:00
totemknet.h totem: add totemknet.[ch] 2016-10-13 08:46:34 +01:00
totemnet.c totem: Add Kronosnet transport. 2016-10-11 10:09:42 +01:00
totemnet.h totem: Add Kronosnet transport. 2016-10-11 10:09:42 +01:00
totempg.c Totempg: remove duplicate memcpy in mcast_msg func 2016-12-05 09:40:55 +01:00
totemsrp.c list: Replace for_each by safe version where need 2016-10-27 14:56:52 +02:00
totemsrp.h totem: Add Kronosnet transport. 2016-10-11 10:09:42 +01:00
totemudp.c list: Replace uses of list.h with qblist.h 2016-10-27 14:56:52 +02:00
totemudp.h totem: Add Kronosnet transport. 2016-10-11 10:09:42 +01:00
totemudpu.c totem: Fix buffer sizes 2017-03-02 14:57:39 +00:00
totemudpu.h totem: Add Kronosnet transport. 2016-10-11 10:09:42 +01:00
util.c list: Replace uses of list.h with qblist.h 2016-10-27 14:56:52 +02:00
util.h Fix various typos 2016-09-12 09:50:11 +02:00
votequorum.c list: Unify the list processing with qb_list func 2016-11-15 12:19:13 +01:00
votequorum.h list: Replace uses of list.h with qblist.h 2016-10-27 14:56:52 +02:00
vsf_quorum.c Remove redundant header file inclusion 2016-12-05 09:59:08 +01:00
vsf_ykd.c YKD: Fix loading of YKD quorum module 2014-08-18 09:33:59 +01:00
vsf_ykd.h list: Replace uses of list.h with qblist.h 2016-10-27 14:56:52 +02:00
vsf.h Update copyright header dates in exec directory 2012-02-13 17:05:04 -07:00
wd.c wd: Report error when close of wd fails 2017-04-20 08:53:45 +02:00