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.
80e405881f52abd601bf8d6fe0ff1c1f?d=identicon&s=25 Nick Khir (hitryy)
on 2016-10-07 11: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.