[procps] Re: How to correctly use readtask (or: please expose free_acquired)

  • From: Andy Lutomirski <luto@xxxxxxxxxxxxxx>
  • To: procps@xxxxxxxxxxxxx
  • Date: Thu, 23 May 2013 12:47:23 -0700

On Thu, May 23, 2013 at 12:40 PM, Andy Lutomirski <luto@xxxxxxxxxxxxxx> wrote:
> On Thu, May 23, 2013 at 12:35 PM, Andy Lutomirski <luto@xxxxxxxxxxxxxx> wrote:
>> Can you either provide some (actual, documented) guidance on how this
>> is supposed to work and/or improve the API a bit?  Something like
>> free_static_proc that does free_acquire(0) would be nice.  allocproc
>> would be a decent alternative (it could just malloc a proc_t and
>> memset it to 0, but it would be clear what's going on).
>
> Gack.  Can you also add a way to *copy* a proc_t while you're at it,
> or at least a nondestructive variant of readtask?
>
> --Andy

AAAAAAAAAAAAAARRRRGGGGGGGGGH!  Neither Fedora nor Ubuntu's packages
even manage to export freeproc.

--Andy

Other related posts: