qnotifier 0.7.0 → 0.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/lib/command.rb CHANGED
@@ -164,25 +164,14 @@ module Qnotifier
164
164
  pid = fork do
165
165
  $0 = 'qnotifierd'
166
166
  Process.setsid
167
- Process.uid = 65534 if Process.euid == 0
167
+ Process.uid = 65534 if Process.uid == 0
168
168
  exit if fork
169
- `echo #{Process.pid} > /var/lib/qnotifier/qnotifer.pid`
170
- Dir.chdir "/var/lib/qnotifier"
171
169
  File.umask 0000
172
170
  STDIN.reopen "/dev/null"
173
171
  STDOUT.reopen "/dev/null", "a"
174
172
  STDERR.reopen STDOUT
175
173
  trap("TERM") {daemon.stop; exit}
176
- loop do
177
- cpid = fork do
178
- $0 = 'qnotifier-runner'
179
- `touch /tmp/running-#{Process.pid}`
180
- qnotifier = Qnotifier::MainProcess.new
181
- qnotifier.run
182
- end
183
- Process.detach cpid
184
- sleep 30
185
- end
174
+ exec "#{File.dirname(__FILE__) }/qnotifierd"
186
175
  end
187
176
  Process.detach pid
188
177
  end
data/qnotifier.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{qnotifier}
5
- s.version = "0.7.0"
5
+ s.version = "0.7.1"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Gersham Meharg"]
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 7
8
- - 0
9
- version: 0.7.0
8
+ - 1
9
+ version: 0.7.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Gersham Meharg
metadata.gz.sig CHANGED
Binary file