Changeset 149 for trunk/src/samhain.c
- Timestamp:
- Jan 7, 2008, 8:52:13 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/samhain.c
r145 r149 818 818 if (0 != stat(SH_INSTALL_PATH, &buf)) 819 819 { 820 dummy = pidlist;820 dummy = (pid_t *)pidlist; 821 821 free(dummy); 822 822 return NULL; … … 827 827 if (NULL == (dp = opendir("/proc"))) 828 828 { 829 dummy = pidlist;829 dummy = (pid_t *)pidlist; 830 830 free(dummy); 831 831 return NULL; … … 858 858 859 859 closedir(dp); 860 return pidlist;860 return (pid_t *)pidlist; 861 861 } 862 862 #else … … 1755 1755 for (modnum = 0; modList[modnum].name != NULL; ++modnum) 1756 1756 { 1757 if (modList[modnum].initval >= SH_MOD_ACTIVE) 1758 (void) modList[modnum].mod_reconf(); 1757 /* sh_thread_pause_flag is true, and we block in lock 1758 * until check has returned, so we are sure check will 1759 * not run until sh_thread_pause_flag is set to false 1760 */ 1761 /* if (modList[modnum].initval >= SH_MOD_ACTIVE) */ 1762 (void) modList[modnum].mod_reconf(); 1759 1763 } 1760 1764 #endif … … 1801 1805 } 1802 1806 1803 sh_thread_pause_flag = S_FALSE;1804 1807 1805 1808 /* --- Initialize modules. --- … … 1832 1835 } 1833 1836 } 1837 1838 /* module is properly set up now 1839 */ 1840 sh_thread_pause_flag = S_FALSE; 1834 1841 1835 1842 --sig_raised; … … 2069 2076 sh_hash_writeout (); 2070 2077 2078 /* no-op unless MEM_LOG is defined in sh_mem.c 2079 */ 2080 #ifdef MEM_DEBUG 2081 sh_mem_dump (); 2082 #endif 2083 2071 2084 /* no loop if not daemon 2072 2085 */
Note:
See TracChangeset
for help on using the changeset viewer.