Changed default fg PID to 1, to avoid killing with pid 0.