[vbox-dev] [linux guest on linux host] alarm() system call broken?
w41ter at gmail.com
Fri Nov 16 05:42:07 PST 2012
The code snippet below is part of a 'configure' script that compiles okay but hangs forever when it runs on a linux guest. I'm wondering if it's a vbox bug or a gentoo bug (i.e. my host and guest machines). Can anyone reproduce? Thanks.
handle_alarm (int sig)
if (sig != SIGALRM)
/* Failure to compile this test due to missing alarm is okay,
since all such platforms (mingw) also lack sleep. */
unsigned int pentecost = 50 * 24 * 60 * 60; /* 50 days. */
unsigned int remaining;
signal (SIGALRM, handle_alarm);
remaining = sleep (pentecost);
if (remaining > pentecost)
if (remaining <= pentecost - 10)
More information about the vbox-dev