SIGHUP handling
This commit is contained in:
parent
249355b135
commit
3ba314298a
3 changed files with 14 additions and 7 deletions
|
|
@ -1,6 +1,6 @@
|
|||
#!/usr/local/bin/ruby -w
|
||||
|
||||
# $Dwarf: ripnews.rb,v 1.70 2003/06/20 09:56:15 ward Exp $
|
||||
# $Dwarf: ripnews.rb,v 1.71 2003/06/20 22:20:35 ward Exp $
|
||||
# $Source$
|
||||
|
||||
require 'date'
|
||||
|
|
@ -472,13 +472,20 @@ end
|
|||
#############################################################################################
|
||||
|
||||
$stdout.sync=true # line buffered output
|
||||
defaults = {'-c' => "#{ENV['HOME']}/.ripnewsrc"}
|
||||
defaults = parse_options(defaults)
|
||||
parse_config(defaults)
|
||||
@defaults = {'-c' => "#{ENV['HOME']}/.ripnewsrc"}
|
||||
@defaults = parse_options(@defaults)
|
||||
parse_config(@defaults)
|
||||
check_config
|
||||
lock
|
||||
renice
|
||||
|
||||
trap("HUP") {
|
||||
puts "Rereading config...\n"
|
||||
parse_config(@defaults)
|
||||
check_config
|
||||
puts "Done reading config\n
|
||||
}
|
||||
|
||||
@maxfilelength = get_max_file_length(@config[@config.keys[0]]["TEMPDIR"])
|
||||
|
||||
print "\n$Id$\n"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue