Re: times() is returning -1

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Apr 15, 2008 at 05:26:30PM +0530, tomy wrote:
>       I am currently working on Linux 2.6 kernel(2.6.20.11). During  
> startup after around 3 minutes times() system call (for getting system  
> ticks) is returning -1 for around 40 seconds. Why it is happening so?.  
> Is there any way to overcome this issue?

Check errno to see what's going wrong. Oh, and to get the amount of
system ticks is a bad idea, see the "return value" section in times(2).
(I guess you will find you get an error after 5 minutes, not after 3).


Erik

-- 
Erik Mouw -- mouw@xxxxxxxxxxxx

Attachment: signature.asc
Description: Digital signature


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux