Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Tue, 20 Sep 2005 17:03:08 -0700 From: Yitzchak Scott-Thoennes To: cygwin AT cygwin DOT com Subject: SA_SIGINFO seems to be ignored Message-ID: <20050921000308.GA2920@efn.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i X-IsSubscribed: yes signal.h defines SA_SIGINFO, but it doesn't seem to work; in the following testcase, hiphup gets info passed as NULL. #include #include void hiphup(int signo, siginfo_t *info, void *context) { if (info == NULL) { printf("info NULL!\n"); return; } printf("got signal\nsigno: %d, info->si_signo: %d\n", signo, info->si_signo); return; } int main(int argc, char **argv) { struct sigaction act; act.sa_mask = 0; act.sa_flags = SA_SIGINFO; act.sa_sigaction = hiphup; sigaction(SIGHUP, &act, NULL); raise(SIGHUP); return 0; } -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/