rsked/vlcplayer.cc
/// Terminate any running child vlc. First ask it to 'quit'; then
/// sigkill any lingering child process.
///
/// * Will NOT throw
///
Terminate any running child vlc. First ask it to 'quit'; then
sigkill any lingering child process.

Will NOT throw
Terminate any running child vlc . First ask it to ' quit ' ; then sigkill any lingering child process . Will NOT throw
void Vlc_player::shutdown_vlc()
{
    if (m_testmode or not m_cm->running())  {
        return;
    }
    if (m_cm->has_pty()) {
        const long quit_us { 20'000L };
        try {
            m_cm->pty_write_nb("quit\n");
            really_sleep( quit_us );  
        } catch(...) {}
    }
    m_cm->kill_child(true,m_kill_us);
}
void Vlc_player :: shutdown_vlc ( ) { if ( m_testmode or not m_cm -> running ( ) ) { return ; } if ( m_cm -> has_pty ( ) ) { const long quit_us { 20'000L } ; try { m_cm -> pty_write_nb ( " \n " ) ; really_sleep ( quit_us ) ; } catch ( ... ) { } } m_cm -> kill_child ( true , m_kill_us ) ; }
Terminate any running child vlc.
Terminate any running child vlc .
// do not do anything if in test mode or not running // give it time to exit // Kill the child process, throwing no exceptions