low@melair.UUCP (Rick Low) (06/13/90)
I built NN 6.4 patchlevel 4 on an HP 9000/350 under HP-UX 7.0. I used the configuration file for HP-UX 6.5. However, nnmaster, when started from /etc/rc at system startup time ("nnmaster -l -r -C"), dies right after checking database consistency. It reports "got hangup". This did not occur with HP-UX 6.5. The problem is related to DETATCH_TERMINAL in NN, setpgrp() in HP-UX, and changes to setpgrp in HP-UX 7.0. The problem can be fixed by using the following file "s-hpux7-0.h" in place of s-hpux6-5.h. ------------------------cut here------------------------- /* s-hpux7-0.h -- NN definition file for HP-UX 7.0 *--------------------------------------------------------------- * 11 Jun 90 Rick Low MEL Defence Systems Ltd, Ottawa, Canada * - used s-hpux6-5.h as distributed, but modified * use of setprgp to correspond to changes in HP-UX 7.0 * as described in 7.0 release notes page 5-1 *--------------------------------------------------------------- */ #include "s-hpux.h" #define SIGNAL_HANDLERS_ARE_VOID /* */ #define EXTRA_LIB -lBSD #ifdef DETATCH_TERMINAL #undef DETATCH_TERMINAL #include <sys/types.h> pid_t setsid(); #define DETATCH_TERMINAL setsid(); #endif ------------------------cut here------------------------- Rick Low MEL Defence Systems Limited, Ottawa, Canada +1 613 836 6860 mitel!melair!low@uunet.uu.net -- Rick Low MEL Defence Systems Limited, Ottawa, Canada +1 613 836 6860 mitel!melair!low@uunet.uu.net