--- - branch: MAIN date: Fri Nov 6 02:26:42 UTC 2015 files: - new: '1.473' old: '1.472' path: src/sys/kern/init_main.c pathrev: src/sys/kern/init_main.c@1.473 type: modified - new: '1.30' old: '1.29' path: src/sys/kern/sysv_ipc.c pathrev: src/sys/kern/sysv_ipc.c@1.30 type: modified - new: '1.70' old: '1.69' path: src/sys/kern/sysv_msg.c pathrev: src/sys/kern/sysv_msg.c@1.70 type: modified - new: '1.95' old: '1.94' path: src/sys/kern/sysv_sem.c pathrev: src/sys/kern/sysv_sem.c@1.95 type: modified - new: '1.130' old: '1.129' path: src/sys/kern/sysv_shm.c pathrev: src/sys/kern/sysv_shm.c@1.130 type: modified - new: '1.26' old: '1.25' path: src/sys/sys/msg.h pathrev: src/sys/sys/msg.h@1.26 type: modified - new: '1.32' old: '1.31' path: src/sys/sys/sem.h pathrev: src/sys/sys/sem.h@1.32 type: modified - new: '1.51' old: '1.50' path: src/sys/sys/shm.h pathrev: src/sys/sys/shm.h@1.51 type: modified id: 20151106T022642Z.e6492c04fc8774dcb960656544c6eace6ff1e8db log: | In sysv_sem.c, defer establishment of exithook so we can initialize the module code from module_init() rather than waiting until after calling exec_init(). Use a RUN_ONCE routine at entry to each sys_sem* syscall to establish the exithook, and no longer KASSERT that the hook has been set before removing it. (A manually loaded module can be unloaded before any syscalls have been invoked.) Remove the conditional calls to the various xxx_init() routines from init_main.c - we now rely on module_init() to handle initialization. Let each sub-component's xxx_init() routine handle its own sysctl sub-tree initialization; this removes another set of #ifdef ugliness. Tested both built-in and loadable versions and verified that atf test kernel/t_sysv passes. module: src subject: 'CVS commit: src/sys' unixtime: '1446776802' user: pgoyette