• Guillem Jover's avatar
    Fix handling of non-contiguous argv + envp in setproctitle() · 2a8514d8
    Guillem Jover authored
    The two arrays might not reference contiguous memory, and assuming they
    are does break at least now on GNU/Hurd, which contains an unmapped
    memory block between the memory used by the two arrays.
    Just check that each element is strictly after the previous one, so that
    we know there are no unmapped memory blocks inbetween.
setproctitle.c 6.2 KB