Forum: Ruby Check if process if waiting for input

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)
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.