From owner-freebsd-current Sun Oct 22 5:58:50 2000 Delivered-To: freebsd-current@freebsd.org Received: from ns.sovintel.ru (ns.sovintel.ru [212.44.130.6]) by hub.freebsd.org (Postfix) with ESMTP id D6FEB37B479 for ; Sun, 22 Oct 2000 05:58:47 -0700 (PDT) Received: from hc.sovintel.ru (fw-nat.sovintel.net [212.44.130.15]) by ns.sovintel.ru (8.9.3/8.9.3) with ESMTP id QAA10177 for ; Sun, 22 Oct 2000 16:58:41 +0400 (MSD) Date: Sun, 22 Oct 2000 16:59:07 +0400 (MSD) From: Andrey Rouskol To: freebsd-current@freebsd.org Subject: test from mysql's configure Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 #include 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