Xref: utzoo news.software.nn:618 comp.sys.hp:5333 Path: utzoo!utstat!news-server.csri.toronto.edu!cs.utexas.edu!samsung!uunet!mitel!melair!low From: low@melair.UUCP (Rick Low) Newsgroups: news.software.nn,comp.sys.hp Subject: nnmaster dies under HP-UX 7.0 -- FIX Keywords: nnmaster HP-UX Message-ID: <368@melair.UUCP> Date: 13 Jun 90 13:13:57 GMT Organization: MEL Defence Systems Ltd., Ottawa, Canada Lines: 47 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 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