GNU bug report logs - #11620
libc I/O buffers not flushed confusion

Previous Next

Package: coreutils;

Reported by: vikas bansal <vikasbansal27 <at> gmail.com>

Date: Sun, 3 Jun 2012 17:56:02 UTC

Severity: normal

Tags: notabug

Done: Pádraig Brady <P <at> draigBrady.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Pádraig Brady <P <at> draigBrady.com>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#11620: closed (Bug in sleep--linux 2.6)
Date: Sun, 03 Jun 2012 20:38:01 +0000
[Message part 1 (text/plain, inline)]
Your message dated Sun, 03 Jun 2012 21:35:16 +0100
with message-id <4FCBCA84.3070402 <at> draigBrady.com>
and subject line Re: bug#11620: Bug in sleep--linux 2.6
has caused the debbugs.gnu.org bug report #11620,
regarding Bug in sleep--linux 2.6
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
11620: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=11620
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: vikas bansal <vikasbansal27 <at> gmail.com>
To: bug-coreutils <at> gnu.org
Subject: Bug in sleep--linux 2.6
Date: Sun, 3 Jun 2012 17:43:50 +0530
[Message part 3 (text/plain, inline)]
The sleep function when written at the end, forces the program to sleep,
preventing him to execute any printf() instructions before it.
Attaching a program.
-- 
Vikas Bansal
Student(ECE undergraduate final year)
The L.N.Mittal Institute of Information Technology,Rajasthan,India.
[Message part 4 (text/html, inline)]
[process1.c (text/x-csrc, attachment)]
[Message part 6 (message/rfc822, inline)]
From: Pádraig Brady <P <at> draigBrady.com>
To: vikas bansal <vikasbansal27 <at> gmail.com>
Cc: 11620-done <at> debbugs.gnu.org
Subject: Re: bug#11620: Bug in sleep--linux 2.6
Date: Sun, 03 Jun 2012 21:35:16 +0100
tag 11620 notabug

On 06/03/2012 01:13 PM, vikas bansal wrote:
> The sleep function when written at the end, forces the program to sleep,
> preventing him to execute any printf() instructions before it.
> Attaching a program.

You got the wrong list because you followed `man 1 sleep`
rather than `man 3 sleep`.

I've not looked at the program at all,
but you may need to add some fflush(stdout) calls,
to ensure timely output.

cheers,
Pádraig.


This bug report was last modified 13 years and 40 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.