From: Robert Klemme Date: 2012-08-28T22:21:54+09:00 Subject: Re: Is calling system() from a thread suppose to be safe? On Tue, Aug 28, 2012 at 2:12 PM, Joel Pearson wrote: > Considering the message about conversion from nil to integer, I'd expect > the problem to be that either "cmd" or "@ncui_pid" is returning nil and > can't be passed into the system command. I don't think so: cmd = "sudo kill -9 -#{@ncui_pid}" ... system(cmd) see http://www.itevenworks.net/~rgs/ruby/wifi-state-observer cmd won't be nil and if @ncui_pid is nil this won't matter. Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/