threads/180496: clock_gettime() does not return CPU-time for zombie processes
Petr Salinger
Petr.Salinger at seznam.cz
Fri Jul 12 15:00:00 UTC 2013
>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
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Fri Jul 12 15:00:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: Petr Salinger
>Release: HEAD
>Organization:
>Environment:
GNU/kFreeBSD 10.0-0-amd64
>Description:
This is follow up to
http://www.freebsd.org/cgi/query-pr.cgi?pr=168417
Our testsuite expects, that clock id created by
clock_getcpuclockid() is valid also in time frame
after process exit before its reap by parent.
http://sourceware.org/git/?p=glibc.git;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.
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-threads
mailing list