Forum: Ruby Check if process if waiting for input

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Nick K. (Guest)
on 2016-10-07 13:06
I run a new process in ruby-code (ruby program) and how can I check if
process is waiting a user input?

In C# I can do like this:

foreach(ProcessThread thread in process.Threads)
    if (thread.ThreadState == ThreadState.Wait
        && thread.WaitReason == ThreadWaitReason.UserRequest)
This topic is locked and can not be replied to.