🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
2 messages
2 total messages Started by Kian Ngiap Tan Thu, 09 Sep 1993 10:16
Help requested on TIN
#5751
Author: Kian Ngiap Tan
Date: Thu, 09 Sep 1993 10:16
16 lines
982 bytes
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
Re: Help requested on TIN
#5810
Author: 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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads