Commit e81e87f8 authored by Andorz Nilsson's avatar Andorz Nilsson Committed by Lennart Poettering
Browse files

dfork: clean up forking logic

Call setsid() once only to make sure we get a process that is not a
session leader or process group leader, and hence cannot acquire a
controlling terminal.

It looks like setpgid() (or setpgrp()) is used only when setsid() is not
available.

It looks like the call to ioctl() is necessary only for 4.3BSD.

(Patch modified by Lennart Poettering)
parent a07c294e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment