Date: Fri, 12 Jul 2013 14:52:01 GMT From: Petr Salinger <Petr.Salinger@seznam.cz> To: freebsd-gnats-submit@FreeBSD.org Subject: threads/180496: clock_gettime() does not return CPU-time for zombie processes Message-ID: <201307121452.r6CEq1YX043656@oldred.freebsd.org> Resent-Message-ID: <201307121500.r6CF00Zr024107@freefall.freebsd.org>
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 >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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201307121452.r6CEq1YX043656>