texinfo-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

texinfo/info signals.c,1.3,1.4


From: karl
Subject: texinfo/info signals.c,1.3,1.4
Date: Sat, 27 Mar 2004 17:19:11 +0100

Update of /cvsroot/texinfo/texinfo/info
In directory sheep:/tmp/cvs-serv17626

Modified Files:
        signals.c 
Log Message:
(initialize_info_signal_handler) [SA_NOCLDSTOP]:
use instead of HAVE_SIGACTION, since Solaris 2.7+
with Sun CC don't have sa_handler, sa_flags, sa_mask.


Index: signals.c
===================================================================
RCS file: /cvsroot/texinfo/texinfo/info/signals.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** signals.c   14 Mar 2004 00:57:30 -0000      1.3
--- signals.c   27 Mar 2004 16:19:09 -0000      1.4
***************
*** 19,23 ****
     Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  
!    Written by Brian Fox (address@hidden). */
  
  #include "info.h"
--- 19,23 ----
     Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  
!    Originally written by Brian Fox (address@hidden). */
  
  #include "info.h"
***************
*** 35,40 ****
  /* Perform OPERATION on NEWSET, perhaps leaving information in OLDSET. */
  static void
! sigprocmask (operation, newset, oldset)
!      int operation, *newset, *oldset;
  {
    switch (operation)
--- 35,39 ----
  /* Perform OPERATION on NEWSET, perhaps leaving information in OLDSET. */
  static void
! sigprocmask (int operation, int *newset, int *oldset)
  {
    switch (operation)
***************
*** 120,128 ****
  initialize_info_signal_handler (void)
  {
! #if defined (HAVE_SIGACTION)
    info_signal_handler.sa_handler = info_signal_proc;
    info_signal_handler.sa_flags = 0;
    mask_termsig (&info_signal_handler.sa_mask);
! #endif /* HAVE_SIGACTION */
  
  #if defined (SIGTSTP)
--- 119,131 ----
  initialize_info_signal_handler (void)
  {
! #ifdef SA_NOCLDSTOP
!   /* (Based on info from Paul Eggert found in coreutils.)  Don't use
!      HAVE_SIGACTION to decide whether to use the sa_handler, sa_flags,
!      sa_mask members, as some systems (Solaris 7+) don't define them.  Use
!      SA_NOCLDSTOP instead; it's been part of POSIX.1 since day 1 (in 1988).  
*/
    info_signal_handler.sa_handler = info_signal_proc;
    info_signal_handler.sa_flags = 0;
    mask_termsig (&info_signal_handler.sa_mask);
! #endif /* SA_NOCLDSTOP */
  
  #if defined (SIGTSTP)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]