Date: Sun, 22 Oct 2000 16:59:07 +0400 (MSD) From: Andrey Rouskol <anry@sovintel.ru> To: freebsd-current@freebsd.org Subject: test from mysql's configure Message-ID: <Pine.BSF.4.21.0010221657400.10805-100000@anry.sovintel.ru>
next in thread | raw e-mail | index | archive | help
Hi there !
Some days ago I was tring to compile mysql at -current and found that
./configure freezes at 'checking for restartable system calls'. Here is a
code witch is executed - if you compile it with '-lc_r -lm -lcrypt' it will
freeze.
test.c:
/* Exit 0 (true) if wait returns something other than -1,
i.e. the pid of the child, which means that wait was restarted
after getting the signal. */
#include <sys/types.h>
#include <signal.h>
ucatch (isig) { }
main () {
int i = fork (), status;
if (i == 0) { sleep (3); kill (getppid (), SIGINT); sleep (3); exit (0); }
signal (SIGINT, ucatch);
status = wait(&i);
if (status == -1) wait(&i);
exit (status == -1);
}
/* end of code */
Regards,
Andrey.
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0010221657400.10805-100000>
