| 53 | |
| 54 | |
| 55 | void ProcessWatcher::run() |
| 56 | { |
| 57 | m_plugin->m_process.start( m_plugin->m_exec, m_plugin->m_args ); |
| 58 | exec(); |
| 59 | m_plugin->m_process.moveToThread( m_plugin->thread() ); |
| 60 | while( !m_quit && m_plugin->messagesLeft() ) |
| 61 | { |
| 62 | msleep( 200 ); |
| 63 | } |
| 64 | if( !m_quit ) |
| 65 | { |
| 66 | fprintf( stderr, |
| 67 | "remote plugin died! invalidating now.\n" ); |
| 68 | m_plugin->invalidate(); |
| 69 | } |
| 70 | } |
| 71 | |
| 72 | |
| 73 |
nothing calls this directly
no test coverage detected