Bug #3128

noVNC not working properly in Ruby 1.8.7

Added by Jaime Melis almost 7 years ago. Updated almost 7 years ago.

Status:ClosedStart date:08/03/2014
Priority:NormalDue date:
Assignee:Jaime Melis% Done:

0%

Category:Sunstone
Target version:Release 4.8
Resolution:fixed Pull request:
Affected Versions:OpenNebula 4.6, OpenNebula 4.8

Description

This affects CentOS 6 for instance.

In OpenNebulaVNC.rb we close the stdin and reopen stderr and stdout to the log. However in Ruby 1.8.7 after this snippet is executed

$stdin.close
$stdout.reopen(VNC_LOG, "a")
$stderr.reopen(VNC_LOG, "a")

STDOUT occupies fd0 and STDERR fd1, meaning that child process will find stderr closed.

Associated revisions

Revision 01d308c1
Added by Jaime Melis almost 7 years ago

Bug #3128: noVNC not working properly in Ruby 1.8.7

Revision 0d265792
Added by Jaime Melis almost 7 years ago

Bug #3128: noVNC not working properly in Ruby 1.8.7

(cherry picked from commit 01d308c171a1f9b7b4d921ca69cdf2e7d3c0f283)

Revision 13381e00
Added by Jaime Melis almost 7 years ago

Bug #3128: noVNC not working properly in Ruby 1.8.7

(cherry picked from commit 01d308c171a1f9b7b4d921ca69cdf2e7d3c0f283)

History

#1 Updated by Jaime Melis almost 7 years ago

  • Status changed from Assigned to Closed
  • Resolution set to fixed

Fixed by reordering the order of reopen and close. Patch applied to 4.6 branch as well.

Also available in: Atom PDF