def report_to_master(status)
      @socket.puts(status) if @socket
    rescue Errno::EPIPE => e
      @socket = nil
      log "#{e.class.name} while writing to master"
      Process.kill(:QUIT, $$) # If the master is gone, LIFE IS NOW MEANINGLESS.
    end
def report_to_master(status)
      @socket.puts(status) if @socket
    rescue Errno::EPIPE => e
      @socket = nil
      log "#{e.class.name} while writing to master"
      Process.kill(:QUIT, $$) # If the master is gone, LIFE IS NOW MEANINGLESS.
    end
Private: Report child process status.

 Examples:

     report_to_master("+12345,queue")  # Worker process PID:12345 started, working on a job from "queue".
     report_to_master("-12345")        # Worker process PID:12345 exited.