[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Process.Wait not behaving as expected
[Thread Prev] | [Thread Next]
- Subject: Re: Process.Wait not behaving as expected
- From: Lee <t.lee.davidson@xxxxxxxxx>
- Date: Sat, 3 Jan 2026 14:04:40 -0500
- To: user@xxxxxxxxxxxxxxxxxxxxxx
On 1/2/26 3:49 PM, Benoît Minisini wrote:
Le 02/01/2026 à 21:00, Benoît Minisini a écrit :Le 02/01/2026 à 20:50, Lee a écrit :Okay, I compiled and installed the latest master (316340a).It does seem to work. But, I had to set the timeout to a full 1 second before the shell script output and exit code were caught properly. (I presume this was necessary to give the shell command time to print its output and exit.)Giving Process.Wait a value of 0 seems to work better than any non- zero value. Is this similar to how "WAIT 0" works?Mmm... There must be another bug.It should be ok now. Regards,
Yes, it works great. With a wait value of 0 to 1 in 100 millisecond increments, it successfully captures the process output and exit code.
Now, how does Process.Wait(0) actually behave? Is it vaguely similar to "WAIT 0" in that it actually waits for some event or perhaps output or exit code from the process?
-- Lee --- Gambas User List Netiquette [https://gambaswiki.org/wiki/doc/netiquette] ---- --- Gambas User List Archive [https://lists.gambas-basic.org/archive/user] ----
| Re: Process.Wait not behaving as expected | Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx> |
| Process.Wait not behaving as expected | Lee <t.lee.davidson@xxxxxxxxx> |
| Re: Process.Wait not behaving as expected | Lee <t.lee.davidson@xxxxxxxxx> |
| Re: Process.Wait not behaving as expected | Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx> |
| Re: Process.Wait not behaving as expected | Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx> |
| Re: Process.Wait not behaving as expected | Lee <t.lee.davidson@xxxxxxxxx> |
| Re: Process.Wait not behaving as expected | Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx> |
| Re: Process.Wait not behaving as expected | Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx> |