flyfire / gmlive

Automatically exported from code.google.com/p/gmlive
GNU General Public License v2.0
0 stars 0 forks source link

解决关闭gmlive后不能再运行 #43

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
针对0.22.2-gloose版本。
关闭后再启动可能会出现“there has another gmlive 
running”。原因是关闭gmlive
后没有关闭创建的socket。
临时解决办法用lsof -i|grep 20124,再kill -9 
xxx杀死lsof找到的占用20124端口
的进程。
或者修改源代码,在MainWindow.cpp中按照下面修改:
void MainWindow::on_menu_quit()
{
    DLOG("on_menu_quit");
    this->get_size( window_width, window_height);
    set_live_player(NULL, "");
    //gmp->stop();
+++ close(fd_skt); //prevent from socket being occupied in CLOSE_WAIT
    Gtk::Main::quit();
}

Original issue reported on code.google.com by floatin...@126.com on 27 Dec 2009 at 2:21