Subject: Re: Division by zero doesn't raise SIGFPE
To: Martin Husemann <martin@duskware.de>
From: Min Sik Kim <minskim@bawi.org>
List: current-users
Date: 12/15/2003 19:42:21
A couple more programs that hang, in case they help.
--
Min Sik Kim
================================
#include <stdlib.h>
#include <signal.h>
#include <unistd.h>
static volatile int handler_done = 0;
void handler(int sig)
{
handler_done = 1;
return;
}
int main(int argc, char *argv[])
{
signal(SIGUSR1, handler);
kill(getpid(), SIGUSR1);
while (!handler_done)
/*nop*/;
exit(0);
}
================================
================================
#include <termcap.h>
main()
{
int r = tgetent((char*)0, "vt100");
return r;
}
================================