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

Re: memstat: FTBFS on hurd-i386


2012/2/4 Jeremie Koenig <jk@jk.fr.eu.org>:
> > The problem is due to lstat() always returning a null size on Linux for
> /proc/*/exe, so the approach described in readlink(2) cannot be applied.
> You will need a reallocation loop similar to what you did for get_line().

Thanks for the advice! I've added a readlink_malloc (happily stolen
[1]) and it seems to work much better now!
BUT, the output is still slightly different! I guess it's normal as
memstat scans its own memory allocation and the 2 exe don't allocate
memory the same way!
I'm afraid the patch will be rejected again due to this! :-(

Is it worth trying?!


[1] https://buildsecurityin.us-cert.gov/bsi/articles/knowledge/coding/806-BSI.html

Attachment: memstat-0.9.hurd.patch
Description: Binary data

Reply to: