raise(-1) has stopped returning an error recently
Duncan Roe
duncan_roe@optusnet.com.au
Mon Nov 22 05:20:15 GMT 2021
Hi,
I stumbled across this when running 'make check' in the grep source directory.
test-raise failed when it didn't a few weeks ago. I cut it down to the STC at
the end of this email
Under Linux:
> 16:15:57$ ./test-raise
> raise(-1) returned -1
Under Cygwin:
> 16:16:51$ ./test-raise.exe
> raise(-1) returned 0
Hope this is nothing too complicated,
Cheers ... Duncan.
========================
#include <stdio.h>
#include <signal.h>
int
main (void)
{
int retcod;
retcod = raise (-1);
printf("raise(-1) returned %d\n", retcod);
}
More information about the Cygwin
mailing list