about summary refs log tree commit homepage
path: root/lib/yahns/server.rb
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2013-10-29 00:56:30 +0000
committerEric Wong <e@80x24.org>2013-10-29 02:37:05 +0000
commitec74dc0cab7c0c164488dbe62c662b4f0cbd64de (patch)
tree8dfa8cc46760603007c1bd57723b6e8c33bb7a70 /lib/yahns/server.rb
parenta08d148e3aecbf2f13d1357611385b10e4ce19de (diff)
downloadyahns-ec74dc0cab7c0c164488dbe62c662b4f0cbd64de.tar.gz
Unfortunately, my eyes are more-or-less trained to ignore
documentation when I edit code.
Diffstat (limited to 'lib/yahns/server.rb')
-rw-r--r--lib/yahns/server.rb9
1 files changed, 1 insertions, 8 deletions
diff --git a/lib/yahns/server.rb b/lib/yahns/server.rb
index a2af745..396b653 100644
--- a/lib/yahns/server.rb
+++ b/lib/yahns/server.rb
@@ -44,14 +44,7 @@ class Yahns::Server # :nodoc:
     inherit_listeners!
     # we try inheriting listeners first, so we bind them later.
     # we don't write the pid file until we've bound listeners in case
-    # yahns was started twice by mistake.  Even though our #pid= method
-    # checks for stale/existing pid files, race conditions are still
-    # possible (and difficult/non-portable to avoid) and can be likely
-    # to clobber the pid if the second start was in quick succession
-    # after the first, so we rely on the listener binding to fail in
-    # that case.  Some tests (in and outside of this source tree) and
-    # monitoring tools may also rely on pid files existing before we
-    # attempt to connect to the listener(s)
+    # yahns was started twice by mistake.
 
     # setup signal handlers before writing pid file in case people get
     # trigger happy and send signals as soon as the pid file exists.