Project

General

Profile

Actions

Feature #7025

closed

way to wait for closing with IO.popen object

Added by rogerdpack (Roger Pack) almost 10 years ago. Updated almost 10 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
[ruby-core:47537]

Description

Hello.
I noticed that it seems, if you do:
IO.popen("something", "w")

there's currently no way (without using a block form? [1]) to tell that this process has exited (or do correct me if I'm wrong).

So consider this a feature request for such.
Thanks!
-roger-

[1] http://stackoverflow.com/questions/1217351/io-popen-how-to-wait-for-process-to-finish

Updated by nobu (Nobuyoshi Nakada) almost 10 years ago

  • Status changed from Open to Closed

=begin
Process.wait(popened_io.pid)
=end

Actions

Also available in: Atom PDF