GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Description: Packet is a Library for Event Driven Network Programming in Ruby
Homepage: http://packet.googlecode.com
Clone URL: git://github.com/gnufied/packet.git
fix issue with logging in worker
gnufied (author)
Sat Oct 04 01:25:25 -0700 2008
commit  e2a9647b30f760e8c31ec912448b218a52b3dae8
tree    0647a1b1b484cf72b70dc92e75e73e05253f8dce
parent  3f462a63793d1fa482cee487e455e955abfe27dc
...
108
109
110
111
112
 
 
113
114
115
...
108
109
110
 
 
111
112
113
114
115
0
@@ -108,8 +108,8 @@ module Packet
0
         [master_write_end,master_read_end].each { |x| x.close }
0
         [worker_read_end,worker_write_end].each { |x| enable_nonblock(x) }
0
         begin
0
- if(ARGV[0] == 'start' && const_defined?(:SERVER_LOGGER))
0
- log_file = File.open(SERVER_LOGGER,"w")
0
+ if(ARGV[0] == 'start' && Object.const_defined?(:SERVER_LOGGER))
0
+ log_file = File.open(SERVER_LOGGER,"a")
0
             [STDIN, STDOUT, STDERR].each {|desc| desc.reopen(log_file)}
0
           end
0
         rescue; end

Comments

    No one has commented yet.