Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Jul 2013 14:52:01 GMT
From:      Petr Salinger <>
Subject:   threads/180496: clock_gettime() does not return CPU-time for zombie processes
Message-ID:  <>
Resent-Message-ID: <>

Next in thread | Raw E-Mail | Index | Archive | Help

>Number:         180496
>Category:       threads
>Synopsis:       clock_gettime() does not return CPU-time for zombie processes
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-threads
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jul 12 15:00:00 UTC 2013
>Originator:     Petr Salinger
>Release:        HEAD
GNU/kFreeBSD 10.0-0-amd64 
This is follow up to

Our testsuite expects, that clock id created by
clock_getcpuclockid() is valid also in time frame 
after process exit before its reap by parent.;a=blob;f=rt/tst-cpuclock1.c;hb=HEAD

live PID 46968 clock ffffffffc000b778 resolution 0.000001000
live PID 46968 before sleep => 0.000000000
live PID 46968 after sleep => 0.506846000
clock_nanosleep not supported for other process clock: Operation not supported
clock_gettime on dead PID 46968 clock ffffffffc000b778 => Invalid argument

It is rather reasonable expectation.

Please allow getting of used time also for zombie processes.




Want to link to this message? Use this URL: <>