summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVassilis Rizopoulos <vassilisrizopoulos@gmail.com>2018-02-02 15:35:22 +0100
committerGitHub <noreply@github.com>2018-02-02 15:35:22 +0100
commitc910f79a46f739aee0b11e10a6158d8d3545501f (patch)
tree0135b414a04a1e294e991488f9222443e9a99830
parent15c48f3b632b5c41b639f4add8089ab003658766 (diff)
parentdc8ba34b66386f83566950aea44b0e6bbd199962 (diff)
downloadsystemu-master.tar.gz
Merge pull request #46 from amatsuda/warningHEADmaster
⚠ assigned but unused variable - thread
-rw-r--r--lib/systemu.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/systemu.rb b/lib/systemu.rb
index 5f7745a..aa12fe4 100644
--- a/lib/systemu.rb
+++ b/lib/systemu.rb
@@ -294,7 +294,7 @@ if defined? JRUBY_VERSION
field = process.get_class.get_declared_field("pid")
field.set_accessible(true)
pid = field.get(process)
- thread = new_thread pid, @block if @block
+ _thread = new_thread pid, @block if @block
exit_code = process.wait_for
[
RubyProcess::RubyStatus.new_process_status(JRuby.runtime, exit_code, pid),