[Queue-developers] new intermediate development Queue version
Brought to you by:
wkrebs
From: QingLong <qin...@Bo...> - 2001-03-01 08:28:37
|
Hello! I've just commited a bunch of patches to queue-development CVS tree at sourceforge. Notes on the changes made: --- Created a longliving file descriptor (debug_fd) and a stream (debug_stream) used for debug output. Having these fd and stream opened on debug log eliminates necessity of lifting privileges each time one wants to append a record to debug file. Also this way of log file writing is considered as more fast. --- Changed order and policy of std(in|out|err) redirection from/to user terminal, log file, debug log, /dev/null, etc to separate messages generated by user command from Queued's own debug and error output. --- Changed conditions under which some signals (listed in ignore[]) are ignored (queued.c main()). Now they are ignored only if running in backround (irrespective of debug mode). This change was made in a try to fix bug recently reported by Gert Van den Eynde <gvd...@sc...> (``Alarm clock'' death). --- Added _GNU_SOURCE and _XOPEN_SOURCE to config.h to enable those extensions when available. --- Added check for [gs]et*[ug]id() functions to configure.in. --- Performed some code cleaning: added header files inclusions, function prototypes, removed unused variables, synced printf() formats with argument types, etc. --- Added a few library functions return status checking/handling to ensure successfull fd dup2()ing, close()ing, etc. --- Added a few trace messages (activated by --debug or --verbose). --- Fixed typo (of my own) in queued.c readpro(): the macro is HAVE_GETRLIMIT rather than HAVE_RLIMIT. --- Changed debugdir ownership check: made it work correctly for non-root installation as well. The necessity of this change was pointed out by Kai Harrekilde-Petersen <kh...@ex...>. I hope I have managed to fix the buglet. I have not yet committed changes to derived stuff like configure and Makefile.in, so one should probably run automake --add-missing autoheader autoconf prior to ./configure. I hope you already have automake et al already installed on your systems. As the changes made, namely the std(in/out/err) one, touch critical parts of code, the new stuff does need steady testing. Please give it try and send feedback to the mailing list. Thank you. QingLong. |