public
Description: A very fast & simple Ruby web server
Homepage: http://code.macournoyer.com/thin/
Clone URL: git://github.com/macournoyer/thin.git
Search Repo:
print error message and exit if -d flag used on Windows
kevwil (author)
Thu Jan 17 07:18:08 -0800 2008
commit  da56b598d40e1b7abd0d73b682399b81c056576b
tree    e6f6d34d65eb79851657d3eee23b10f72783d17d
parent  6134e4395966cc3b7a4623aff635378a64f6e54c
...
73
74
75
 
 
 
 
76
77
78
...
73
74
75
76
77
78
79
80
81
82
0
@@ -73,6 +73,10 @@
0
     server.timeout = options[:timeout]
0
   
0
     if options[:daemonize]
0
+ if RUBY_PLATFORM =~ /mswin/
0
+ puts "Error: daemonizing not supported on Windows."
0
+ exit 1
0
+ end
0
       server.change_privilege options[:user], options[:group] if options[:user] && options[:group]
0
       server.daemonize
0
     end

Comments

    No one has commented yet.