--- Begin Message ---
Subject: |
Bug in sleep--linux 2.6 |
Date: |
Sun, 3 Jun 2012 17:43:50 +0530 |
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 BansalStudent(ECE undergraduate final year)
The L.N.Mittal Institute of Information Technology,Rajasthan,India.
process1.c
Description: Text Data
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#11620: Bug in sleep--linux 2.6 |
Date: |
Sun, 03 Jun 2012 21:35:16 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:6.0) Gecko/20110816 Thunderbird/6.0 |
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.
--- End Message ---