🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.unix.programmer
1 messages
1 total messages Started by Dave Mon, 22 Apr 1996 00:00
sigaction.sa_handler = SIG_IGN (SunOS 5.4, g++ 2.7.2) give ANSI C++ warning
#3465
Author: Dave
Date: Mon, 22 Apr 1996 00:00
35 lines
1562 bytes
Hi,

I get the following warning:

process.cc:192: warning: ANSI C++ prohibits conversion from `(int)' to `(...)'

Here is the relevant part of my source:

  {
    struct sigaction act;

    act.sa_handler = SIG_IGN;
    act.sa_flags   = 0;

    sigemptyset(&act.sa_mask);

    if (sigaction(SIGTTOU, &act, NULL) != 0) PANIC;
    if (sigaction(SIGTTIN, &act, NULL) != 0) PANIC;
    if (sigaction(SIGTSTP, &act, NULL) != 0) PANIC;
  }

The line tha gives the warning is the "act.sa_handler = SIG_IGN" line. I don't
know why I'm getting this warning. The books I have say this is okay (Rago:
UNIX SysV Net. Prog.), the man page says this is okay as well. The sa_handler
field can be either:

a void (*handler)() or SIG_IGN or SIG_DFL

What gives? I'm using  SunOS 5.4 and g++ 2.7.2.

I'd appreciate being CC'ed as well. TIA.

Dave.
-- 
i'm on a huge wispy rhino fart
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