mirror_corosync/exec
Fabio M. Di Nitto 6115c85328 logsys: fix segfault in logsys_thread_priority_set
logsys_thread_priority_set expects that wthread is already running
but doesn't perform any check if it is.

if logsys_thread_priority_set is invoked before forking the thread,
a segfault is guaranteed.

this changes to logsys_thread_priority_set ensure that a request
for a new scheduler priority is queued if the wthread is not
created yet and the new scheduler parameters are applied as early
as possible after the thread is created.

At the same time:

- add a few comments on clean up that needs to be done
- remove a redundant check for policy != SCHED_OTHER as that's
  corosync need specific. logsys should simply accept the request
  and apply it.



git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2382 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-08-10 05:32:58 +00:00
..
apidef.c Export poll handle via coroapi.h. 2009-06-29 23:24:24 +00:00
apidef.h remove empty lines at end-of-file 2009-04-22 08:04:06 +00:00
coroipcs.c Use unnamed shared posix semaphores on platforms which support them. 2009-08-04 00:22:41 +00:00
coroparse.c Support for service.d 2009-07-22 08:25:45 +00:00
coropoll.c Remove shadow warnings. 2009-06-20 17:33:38 +00:00
crypto.c remove empty lines at end-of-file 2009-04-22 08:04:06 +00:00
crypto.h remove all trailing blanks 2009-04-22 08:03:55 +00:00
evil.c Fix build on bsd systems. 2009-07-01 19:55:18 +00:00
evil.h Follow synchronization model of event service so corosync without openais 2009-06-28 04:50:18 +00:00
logsys.c logsys: fix segfault in logsys_thread_priority_set 2009-08-10 05:32:58 +00:00
main.c Support for -v (version) feature 2009-08-04 07:39:03 +00:00
main.h Export poll handle via coroapi.h. 2009-06-29 23:24:24 +00:00
mainconfig.c remove trailing blanks 2009-06-30 09:27:20 +00:00
mainconfig.h Add compatability option in config file. Defaults to whitetank. 2009-06-26 00:25:52 +00:00
Makefile.am Support for -v (version) feature 2009-08-04 07:39:03 +00:00
objdb.c This patch makes a copy of the notifications list before calling the 2009-08-04 07:14:55 +00:00
quorum.c don't include <signal.h> when it's not used 2009-05-18 16:41:46 +00:00
quorum.h quorum.h (quorum_set_quorate_fn_t): make first param const 2009-04-08 06:43:03 +00:00
schedwrk.c exec/schedwrk.c: include <config.h> 2009-05-18 16:41:21 +00:00
schedwrk.h Add missing schedwrk files. 2009-04-18 14:42:09 +00:00
service.c Handle NULL ver string in service 2009-07-23 14:50:56 +00:00
service.h Add syncv2. 2009-06-26 21:15:19 +00:00
sync.c Allow syncv2 to determine membership list when run in compatibility mode. 2009-06-28 04:51:38 +00:00
sync.h Allow syncv2 to determine membership list when run in compatibility mode. 2009-06-28 04:51:38 +00:00
syncv2.c Align syncv2 on 8 byte boundaries. 2009-07-01 19:48:14 +00:00
syncv2.h Allow syncv2 to determine membership list when run in compatibility mode. 2009-06-28 04:51:38 +00:00
timer.c Add tests for posix scheduling apis to configure.ac and use them to determine 2009-06-21 16:33:25 +00:00
timer.h Support for monotime timer 2009-07-27 10:12:55 +00:00
tlist.h Support for systems where clock_gettime is not available 2009-08-03 08:11:53 +00:00
totemconfig.c maint: remove trailing blanks 2009-06-19 11:34:50 +00:00
totemconfig.h remove all trailing blanks 2009-04-22 08:03:55 +00:00
totemiba.c Optimization of totemsrp and below by removing hdb usage. cpgbench shows 2009-07-22 22:10:35 +00:00
totemiba.h Optimization of totemsrp and below by removing hdb usage. cpgbench shows 2009-07-22 22:10:35 +00:00
totemip.c Always keep autogenerated node ids in totem as LE even on BE arches. 2009-08-04 00:04:13 +00:00
totemmrp.c Add notification when totem has completed initialization. 2009-07-27 02:00:05 +00:00
totemmrp.h Add notification when totem has completed initialization. 2009-07-27 02:00:05 +00:00
totemnet.c Add a target token set completed callback in totemrrp and below layers. 2009-07-27 00:29:32 +00:00
totemnet.h Add a target token set completed callback in totemrrp and below layers. 2009-07-27 00:29:32 +00:00
totempg.c Add notification when totem has completed initialization. 2009-07-27 02:00:05 +00:00
totemrrp.c Add notification when totem has completed initialization. 2009-07-27 02:00:05 +00:00
totemrrp.h Add a target token set completed callback in totemrrp and below layers. 2009-07-27 00:29:32 +00:00
totemsrp.c Support for monotime timer 2009-07-27 10:12:55 +00:00
totemsrp.h Add notification when totem has completed initialization. 2009-07-27 02:00:05 +00:00
totemudp.c Add a target token set completed callback in totemrrp and below layers. 2009-07-27 00:29:32 +00:00
totemudp.h Add a target token set completed callback in totemrrp and below layers. 2009-07-27 00:29:32 +00:00
util.c Remove "AIS" string from exit notice. 2009-06-23 05:50:04 +00:00
util.h Warn user of missing dirs and exit gracefully. 2009-06-19 01:53:24 +00:00
vsf_quorum.c Add compatability option in config file. Defaults to whitetank. 2009-06-26 00:25:52 +00:00
vsf_ykd.c Remove shadow warnings. 2009-06-20 17:33:38 +00:00
vsf.h remove all trailing blanks 2009-04-22 08:03:55 +00:00
wthread.c Rename queue datastructure to cs_queue data structure because some fail 2009-06-07 00:47:56 +00:00
wthread.h remove all trailing blanks 2009-04-22 08:03:55 +00:00