summaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2009-11-17 10:14:02 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2009-11-17 10:14:02 +0100
commit9e28d47aaa506709a9e80e318527ceb4443cbffe (patch)
treeed5eb270261e9afc4bd97645d74c5c9b9dac59ff /runtime
parentf868d6a17ab03761852699e95dbb0e401944af05 (diff)
downloadrsyslog-9e28d47aaa506709a9e80e318527ceb4443cbffe.tar.gz
rsyslog-9e28d47aaa506709a9e80e318527ceb4443cbffe.tar.xz
rsyslog-9e28d47aaa506709a9e80e318527ceb4443cbffe.zip
worked a bit on "unlimited select()" patch
- potential segfault in gss-misc.c - glbl interface needed different version ID - some compile time warning cleanup
Diffstat (limited to 'runtime')
-rw-r--r--runtime/glbl.h8
-rw-r--r--runtime/unlimited_select.h6
2 files changed, 10 insertions, 4 deletions
diff --git a/runtime/glbl.h b/runtime/glbl.h
index c55c2536..6a332576 100644
--- a/runtime/glbl.h
+++ b/runtime/glbl.h
@@ -62,14 +62,18 @@ BEGINinterface(glbl) /* name must also be changed in ENDinterface macro! */
/* added v3, 2009-06-30 */
rsRetVal (*GenerateLocalHostNameProperty)(void);
prop_t* (*GetLocalHostNameProp)(void);
- /* added v4, 2009-11-16 as part of varmojfekoj's "unlimited select()" patch
+ /* note: v4, v5 are already used by more recent versions, so we need to skip them! */
+ /* added v6, 2009-11-16 as part of varmojfekoj's "unlimited select()" patch
* Note that it must be always present, otherwise the interface would have different
* versions depending on compile settings, what is not acceptable.
+ * Use this property with care, it is only truly available if UNLIMITED_SELECT is enabled
+ * (I did not yet further investigate the details, because that code hopefully can be removed
+ * at some later stage).
*/
SIMP_PROP(FdSetSize, int)
#undef SIMP_PROP
ENDinterface(glbl)
-#define glblCURR_IF_VERSION 4 /* increment whenever you change the interface structure! */
+#define glblCURR_IF_VERSION 6 /* increment whenever you change the interface structure! */
/* version 2 had PreserveFQDN added - rgerhards, 2008-12-08 */
/* the remaining prototypes */
diff --git a/runtime/unlimited_select.h b/runtime/unlimited_select.h
index 61a2baca..32dadc03 100644
--- a/runtime/unlimited_select.h
+++ b/runtime/unlimited_select.h
@@ -34,10 +34,12 @@
# define FD_ZERO(set) memset((set), 0, glbl.GetFdSetSize());
#endif
-void freeFdSet(fd_set *p) {
#ifdef USE_UNLIMITED_SELECT
+void freeFdSet(fd_set *p) {
free(p);
-#endif
}
+#else
+# define freeFdSet(x)
+#endif
#endif /* #ifndef UNLIMITED_SELECT_H_INCLUDED */