- Timestamp:
- Nov 1, 2011, 11:11:02 PM (13 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/sh_fInotify.c
r373 r376 264 264 static void sh_fInotify_set_nwatches() 265 265 { 266 if (ShfInotifyWatches == 0) 266 static int fails = 0; 267 268 if (ShfInotifyWatches == 0 || fails == 1) 267 269 return; 268 270 … … 303 305 _("sh_fInotify_set_nwatches")); 304 306 SH_MUTEX_UNLOCK(mutex_thread_nolog); 307 fails = 1; 305 308 return; 306 309 } -
trunk/src/sh_portcheck.c
r362 r376 1793 1793 { 1794 1794 volatile int min_port; 1795 static int noprivports = 0; 1795 1796 1796 1797 SH_MUTEX_LOCK(mutex_port_check); … … 1808 1809 { 1809 1810 min_port = 1024; 1811 if (noprivports == 0) 1812 { 1810 1813 #ifdef TEST_ONLY 1811 fprintf(stderr, "** WARNING not scanning ports < 1024\n"); 1812 #else 1813 SH_MUTEX_LOCK(mutex_thread_nolog); 1814 sh_error_handle(SH_ERR_ERR, FIL__, __LINE__, 0, MSG_E_SUBGEN, 1815 _("not scanning ports below 1024"), 1816 _("sh_portchk_check")); 1817 SH_MUTEX_UNLOCK(mutex_thread_nolog); 1818 #endif 1814 fprintf(stderr, "** WARNING not scanning ports < 1024\n"); 1815 #else 1816 SH_MUTEX_LOCK(mutex_thread_nolog); 1817 sh_error_handle(SH_ERR_ERR, FIL__, __LINE__, 0, MSG_E_SUBGEN, 1818 _("not scanning ports below 1024"), 1819 _("sh_portchk_check")); 1820 SH_MUTEX_UNLOCK(mutex_thread_nolog); 1821 #endif 1822 noprivports = 1; 1823 } 1819 1824 } 1820 1825
Note:
See TracChangeset
for help on using the changeset viewer.