From 650e01ab0b118803486b56f3ee59521d59042dae Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 8 Mar 2017 07:33:38 +0000 Subject: doc: add version annotations for new features We will inevitably have people running old unicorn versions for many years to come; but they may be reading the latest documentation online. Annotate when the new features (will) appear to avoid misleading users on old versions. --- lib/unicorn/worker.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib/unicorn/worker.rb') diff --git a/lib/unicorn/worker.rb b/lib/unicorn/worker.rb index 8bbac5e..68de17e 100644 --- a/lib/unicorn/worker.rb +++ b/lib/unicorn/worker.rb @@ -125,7 +125,10 @@ class Unicorn::Worker # Any and all errors raised within this method will be propagated # directly back to the caller (usually the +after_fork+ hook. # These errors commonly include ArgumentError for specifying an - # invalid user/group and Errno::EPERM for insufficient privileges + # invalid user/group and Errno::EPERM for insufficient privileges. + # + # chroot support is only available in unicorn 5.3.0+ + # user and group switching appeared in unicorn 0.94.0 (2009-11-05) def user(user, group = nil, chroot = false) # we do not protect the caller, checking Process.euid == 0 is # insufficient because modern systems have fine-grained -- cgit v1.2.3-24-ge0c7