OSDN Git Service

Another try at fixing the ps segfault resulting from /proc entries vanishing
authorRob Landley <rob@landley.net>
Thu, 31 Aug 2017 21:50:27 +0000 (16:50 -0500)
committerRob Landley <rob@landley.net>
Thu, 31 Aug 2017 21:50:27 +0000 (16:50 -0500)
commitbebf14cc298eb41d8e5c245e3800aea69ecca08c
tree05d7c9dc75befb23cc954e6f39d154c8025eedc2
parent709a44246456a49c06d73dfbe84daa5b4ba5fec5
Another try at fixing the ps segfault resulting from /proc entries vanishing
out from under us due to asyncronous process exit.

The directory we're traversing vanishing can result in DIRTREE_ABORTVAL
being returned, which we turn into a NUL entry, but then we were trying to
look at that null entry's children. Oops.
toys/posix/ps.c