| 911 | } |
| 912 | |
| 913 | virtual void run(void *p_userdata) override { |
| 914 | if (process_id == -1) { |
| 915 | return; |
| 916 | } |
| 917 | |
| 918 | while (OS::get_singleton()->is_process_running(process_id) && !is_cancelled) { |
| 919 | // we have to do continually read from the pipes or the process will hang |
| 920 | output += fa_stdout->get_as_text() + fa_stderr->get_as_text(); |
| 921 | OS::get_singleton()->delay_usec(10000); |
| 922 | } |
| 923 | error_code = OS::get_singleton()->get_process_exit_code(process_id); |
| 924 | process_id = -1; |
| 925 | after_run(); |
| 926 | } |
| 927 | |
| 928 | virtual bool auto_close_progress_bar() override { |
| 929 | return true; |
nothing calls this directly
no test coverage detected