signal, strsep, dup