Changes between Version 10 and Version 11 of GEC19Agenda/GIMI/Procedure/Execute


Ignore:
Timestamp:
03/18/14 12:08:11 (10 years ago)
Author:
divyashri.bhat@gmail.com
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GEC19Agenda/GIMI/Procedure/Execute

    v10 v11  
    206206    end
    207207
     208    # Handle Ctrl+C and OMF's SIGTERM
     209    Signal.trap("INT", stop)
     210    Signal.trap("TERM", stop)
     211
     212    begin
     213      pingl2
     214    rescue EOFError
     215
     216    end
     217end
     218
     219def stop()
     220   return if @pingio.nil?
     221   # Kill the ping process, which will result in EOFError from ping()
     222   Process.kill("INT", @pingio.pid)
     223end
     224
     225end
     226begin
     227  $stderr.puts "INFO\tpingl2 2.11.0\n"
     228  app = Pingl2Wrapper.new(ARGV)
     229  app.start()
     230  sleep 1
     231rescue Interrupt
     232rescue Exception => ex
     233   $stderr.puts "Error\t#{ex}\n"
     234end
     235
     236
     237
     238# Local Variables:
     239# mode:ruby 
     240# End:
     241# vim: ft=ruby:sw=2
     242
    208243}}}
    209244