From: "Hal E. Fulton" Date: 2003-05-22T13:49:09+09:00 Subject: fork and wait... what am I missing? Running this code on RedHat 8, Ruby 1.8.0preview2: fork { system(cmd) } sleep(1) Process.wait puts "Finished waiting" When the cmd is something like "sleep 15" or "ls -lR >/dev/null" or something, the Process.wait works fine. When the cmd is "gvim foobar" -- it doesn't wait at all. The Ruby program exits before the gvim exits. Also tried "gvim foobar; sleep 1" and so on. Tried with/without the sleep before the Process.wait call. What's going on here? Thanks, Hal