[Openslp-devel] Configurable port (instead of fixed port '427')

2008-06-30 Thread Roel van de Kraats
Hi, The following patch adds a property net.slp.port to make the port to use configurable, instead of having a fixed '427'. The reason I wanted this was that in the same slp network some java applications (using their own slp implementation) couldn't use the privileged port 427 because they we

[Openslp-devel] DA log fix

2008-06-30 Thread Roel van de Kraats
Hi, The small patch below fixes two DA log issues: - a 'removed' DA was logged with a bogus IP address - an empty attribute list was shown as '' A similar patch was already sent about a year ago for openSLP 1.2. This patch is against trunk/r1589. Kind regards, Roel van de Kraats --- begin

[Openslp-devel] logrotate support

2008-06-30 Thread Roel van de Kraats
Hi, The following patch allows for re-opening the slpd log file on a USR1 signal, making it possible to let 'logrotate' clean-up the log files. Unfortunately, user 'daemon' is normally not allowed to open/create a log file, so suid() to this user after start-up will cause problems. In this patch

[Openslp-devel] Fix for libslp SEGV at exit

2008-06-30 Thread Roel van de Kraats
Hi, I encountered a SEGV in libslp during exit of an application. It turned out that the application called SLPDereg() via atexit(). However, libslp itself already cleaned-up its properties via atexit() as well, causing the SEGV. The following small patch simply disables libslp's atexit() handler