processes - use getline() instead of a fixed size array of char

Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>