]> git.ipfire.org Git - thirdparty/squid.git/commit
Bug 4914: Do not call setsid() in --foreground mode (#354)
authorMarcos Mello <marcosfrm@users.noreply.github.com>
Wed, 23 Jan 2019 15:18:43 +0000 (15:18 +0000)
committerAmos Jeffries <yadij@users.noreply.github.com>
Mon, 28 Jan 2019 05:11:46 +0000 (18:11 +1300)
commit6076ca90a8101888483b769edd2f9aeef0da8638
tree307e8ce408d61c0ec06ceedc3d0c18046d869892
parenta374216b3262b6b40dc19b8ea5423cd2f27f94a3
Bug 4914: Do not call setsid() in --foreground mode (#354)

Squid executed in --foreground is always a process group leader. Thus,
setsid(2) is unnecessary and always fails (with EPERM) for such Squids.
src/main.cc