Cross-builds on Hydra now with Parted

2010-08-25 Thread Ludovic Courtès
Hello! Starting from today, Hydra continuously cross-builds the Hurd [0] against a fresh checkout of GNU Parted, which should make it easy to spot any incompatibilities introduced between the two. Build results are accessible at: http://hydra.nixos.org/jobset/gnu/hurd-master Thanks, Ludo’. [

[PATCH 2/4] libps (_proc_stat_free): Fix memory leak

2010-08-25 Thread Jeremie Koenig
The thread_waits field was never freed; this change adds the code to do so if the corresponding flag is set. Users are also warned of the consequences, namely, that they should not free process proc_stats before all their associated thread ones are gone, since the latter may reference the former's

[PATCH 4/4] libps (proc_stat_set_flags): Fix pointer signedness warning

2010-08-25 Thread Jeremie Koenig
--- libps/procstat.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/libps/procstat.c b/libps/procstat.c index 13f1829..6e920f4 100644 --- a/libps/procstat.c +++ b/libps/procstat.c @@ -961,7 +961,7 @@ proc_stat_set_flags (struct proc_stat *ps, ps_flags_t flags) when

[PATCH 3/4] libps (fetch_procinfo): Fix non-set flag PSTAT_TASK_EVENTS

2010-08-25 Thread Jeremie Koenig
The fetch_procinfo function failed to set the PSTAT_TASK_EVENTS when those has been retreived. It should be noted that GNU Mach does not support the TASK_EVENTS_INFO flavor, so this is of minor importance. The new code also checks that all the requested proc server flags related to a given proc_st

[PATCH 1/4] libps (_proc_stat_free): Fix deadly typo

2010-08-25 Thread Jeremie Koenig
PSTAT_PROCINFO is a set of flags, some of which can be obtained in alternative ways. In this case, _proc_stat_free will try to deallocate an uninitialised field. PSTAT_PROC_INFO is the flag we want. --- libps/procstat.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/libp

Patches for libps

2010-08-25 Thread Jeremie Koenig
Hi, these patches fix a few issues with libps which I have come across while rewriting procfs (in good shape, coming soon!) [PATCH 1/4] libps (_proc_stat_free): Fix deadly typo [PATCH 2/4] libps (_proc_stat_free): Fix memory leak These two should probably be applied. This one fixes an error whi