stop overwriting lines after +fork

Signed-off-by: Mattias Andrée <maandree@operamail.com>
keep track of lines in stdout/stderr

Signed-off-by: Mattias Andrée <maandree@operamail.com>