Project

General

Profile

Actions

Bug #11353

closed

ASYNC BUG after failure of Process.exec when closing FD 3 (or 4 or 5)

Added by ngoto (Naohisa Goto) over 9 years ago. Updated over 9 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:69977]

Description

The following shows ASYNC BUG.

ruby -e 'Process.exec("/does_not_exist", "arg", {3=>:close})'
[ASYNC BUG] -e:1:in `exec': No such file or directory - /does_not_exist (Errno::ENOENT)
	from -e:1:in `<main>'
consume_communication_pipe: read

EBADF

ruby 2.3.0dev (2015-07-10) [x86_64-linux]

[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html

Aborted

Closing FD 4 or 5 also causes ASYNC BUG.


Related issues 2 (0 open2 closed)

Related to Ruby master - Bug #11350: When Process.exec failed, redirections were still changed and not restoredClosedActions
Related to Ruby master - Bug #11336: TestProcess#test_exec_fd_3_redirect failed on Solaris 10ClosedActions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0