🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #5810

Re: Help requested on TIN

#5810
From: Percy Veals
Date: Mon, 13 Sep 1993 21:52
105 lines
3448 bytes
In article <CD30Jw.L86@newsserver.technet.sg> tankn@solomon.technet.sg (Kian Ngiap Tan) writes:


   I have setup innd on hp-ux9.0/hp9000/827.

   When I try to use tin to post article I got "article rejected". Actually the
   article has been posted successfully even though the message is shown
   article rejected. 

   Please help !

   Thank you in advance

   jianyun

   my email address is 

   jianyun@acad1.tp.ac.sg



Apparently, tin isn't getting the correct return code from the call
system("inews -h < .article"). It looks like tin depends on the SIGCHLD
signal handler to grab the return code but HPUX blocks SIGCHLD during
the system(".....") call. The patch below fixes this and also allows make 
sysvr4 work on HPUX 8 & 9 systems.

I'll send a copy to Ian.


*** config.h    Mon Sep 13 13:33:32 1993
--- config.h~   Wed Jul 14 04:36:13 1993
***************
*** 231,237 ****
   * Use poll()/select() in input_pending()
   */
  
! #if (defined(SVR4) && !defined(__hpux)) || defined(HAVE_POLL)
  #     define  HAVE_STROPTS_H
  #     define  HAVE_POLL_H
  #     if !defined(HAVE_POLL)
--- 231,237 ----
   * Use poll()/select() in input_pending()
   */
  
! #if defined(SVR4) || defined(HAVE_POLL)
  #     define  HAVE_STROPTS_H
  #     define  HAVE_POLL_H
  #     if !defined(HAVE_POLL)
***************
*** 274,280 ****
  #     define  DONT_PROTOTYPE_PTR_TO_FUNC
  #     define  DONT_HAVE_SYS_BSDTYPES_H
  #     define  HAVE_KEYPAD
- #     define  HAVE_SYS_WAIT_H
  #endif
  
  #if defined(RS6000)
--- 274,279 ----


*** inews.c     Mon Sep 13 13:41:06 1993
--- inews.c~    Wed Jul 14 04:36:16 1993
***************
*** 397,403 ****
        make_post_cmd (cp, name);
  #endif        /* M_UNIX */
  
!               ret_code = invoke_cmd (buf);
        } 
  
        return (ret_code);
--- 397,403 ----
        make_post_cmd (cp, name);
  #endif        /* M_UNIX */
  
!               ret_code = (invoke_cmd (buf) ? 0 : 1);
        } 
  
        return (ret_code);



*** misc.c      Mon Sep 13 13:35:45 1993
--- misc.c~     Wed Jul 14 04:36:19 1993
***************
*** 452,458 ****
                susp = signal(SIGTSTP, SIG_DFL);
  #endif
  
! #if defined(SIGCHLD) && !defined(RS6000) && !defined(__hpux)
        system (nam);
        ret = system_status;
  #else
--- 452,458 ----
                susp = signal(SIGTSTP, SIG_DFL);
  #endif
  
! #if defined(SIGCHLD) && !defined(RS6000)
        system (nam);
        ret = system_status;
  #else


Cheers--Percy
Technical Details
Message-ID: <VEALS.93Sep13165203@crchh84d.bnr.ca>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!europa.eng.gtefsd.com!uunet!yeshua.marcam.com!news.kei.com!bloom-beacon.mit.edu!TAMUTS.TAMU.EDU!news.utdallas.edu!corpgate!crchh327.bnr.ca!news!veals
References: <CD30Jw.L86@newsserver.technet.sg>

Show Full Headers
Complete Article Headers
Message-ID: <VEALS.93Sep13165203@crchh84d.bnr.ca>
Subject: Re: Help requested on TIN
Date: Mon, 13 Sep 1993 21:52:02 +0000
From: veals@crchh84d.bnr.ca (Percy Veals)
References: <CD30Jw.L86@newsserver.technet.sg>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!europa.eng.gtefsd.com!uunet!yeshua.marcam.com!news.kei.com!bloom-beacon.mit.edu!TAMUTS.TAMU.EDU!news.utdallas.edu!corpgate!crchh327.bnr.ca!news!veals
Newsgroups: news.software.readers
Organization: Bell Northern Research, Richardson, TX.
Lines: 109
NNTP-Posting-Host: crchh84d.bnr.ca
In-reply-to: tankn@solomon.technet.sg's message of Thu, 9 Sep 1993 10:16:44 GMT