delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/02/21/05:20:22

X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Alex Dupre <sysadmin AT alexdupre DOT com>
Subject: Re: signal handler and JNI
Date: Tue, 21 Feb 2006 10:19:38 +0000 (UTC)
Lines: 18
Message-ID: <loom.20060221T111136-774@post.gmane.org>
References: <43F9D317 DOT 5090502 AT alexdupre DOT com> <004c01c6362d$2f2219b0$a501a8c0 AT CAM DOT ARTIMI DOT COM> <loom DOT 20060220T165839-321 AT post DOT gmane DOT org>
Mime-Version: 1.0
User-Agent: Loom/3.14 (http://gmane.org/)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Alex Dupre <sysadmin <at> alexdupre.com> writes:

> Yes, I've read it before posting to the list, but I cannot see where it
> explains why I should call a print function to get the signal handled.
> And not every print function, sprintf() doesn't work, printf() with empty
> string doesn't work, currently I succeded with printf() and putc() to
> stdout and /dev/null (that's the workaround I'm using now, since I don't
> want anything printed out). I'd like to know if there is another or more
> appropriate function that I should call.

Actually putc() wasn't working, it was the fopen/fclose on /dev/null to deliver
the signal. Anyway, I found a better workaround, calling sleep(0) does the job.
If you could tell me why a putc('.') doesn't work and a sleep(0) works, it'd be
nice :-)

--
Alex Dupre



--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019