Bug 180257 - alarm() not returning correct value
Summary: alarm() not returning correct value
Keywords:
Status: CLOSED DUPLICATE of bug 180256
Alias: None
Product: Fedora
Classification: Fedora
Component: glibc
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact: Brian Brock
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-02-06 20:20 UTC by Jonathan Kamens
Modified: 2007-11-30 22:11 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-02-06 20:21:39 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Jonathan Kamens 2006-02-06 20:20:39 UTC
With glibc-2.3.90-30.i686.rpm installed February 1 along with about 1,000 
other FC devel packages, including kernel-smp-2.6.15-1.1884_FC5smp and gcc-
4.1.0-0.18, this C program:

#include <unistd.h>
#include <stdio.h>

main()
{
  alarm(5);
  printf("alarm returned %d\n", alarm(0));
}

prints "alarmed return 0'.  It *should* print "alarm returned 5" or 
perhaps "alarm returned 4".

Comment 1 Jonathan Kamens 2006-02-06 20:21:39 UTC

*** This bug has been marked as a duplicate of 180256 ***


Note You need to log in before you can comment on or make changes to this bug.