Opened 13 years ago
Closed 12 years ago
#10585 closed defect (fixed)
The SIGALRM never fires
Reported by: | PoLiang | Owned by: | |
---|---|---|---|
Component: | other | Version: | VirtualBox 4.1.14 |
Keywords: | Cc: | ||
Guest type: | Linux | Host type: | Windows |
Description
I know there is a similiar ticket, but it has been there for more than 4 months. I want to report this issue and provide VBOX.log file.
I run the program:
#include <stdio.h>
#include <stdlib.h>
#include <signal.h>
#include <sys/time.h>
#define INTERVAL 10
void alarm_wakeup (int i)
{
signal(SIGALRM,alarm_wakeup);
printf("%d sec up partner, Wakeup!!!\n",INTERVAL);
exit(0);
}
int main ()
{
struct itimerval tout_val;
tout_val.it_interval.tv_sec = 0;
tout_val.it_interval.tv_usec = 0;
tout_val.it_value.tv_sec = INTERVAL; /* set timer for "INTERVAL (10) seconds */
tout_val.it_value.tv_usec = 0;
setitimer(ITIMER_REAL, &tout_val,0);
signal(SIGALRM,alarm_wakeup); /* set the Alarm signal capture */
while (1);
return 0;
}
SIGALRM never files.
Compiler: gcc
guest OS: Ubuntu 12.04 Linux 3.2.0-24-generic-pae i686
host OS: Windows Vista
Attachments (1)
Change History (2)
by , 13 years ago
Attachment: | Ubuntu-2012-05-21-15-26-12.log added |
---|
comment:1 by , 12 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
This was most likely fixed in VBox 4.2.8.