From 740ce83b80562226f199323c67242e96d58ba380 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Sat, 8 Oct 2022 12:50:04 +0800 Subject: [PATCH 1/2] 1 --- server/gameserver/GGListener.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/server/gameserver/GGListener.cc b/server/gameserver/GGListener.cc index 085b70e2..11f58c39 100644 --- a/server/gameserver/GGListener.cc +++ b/server/gameserver/GGListener.cc @@ -87,6 +87,7 @@ static void GSListeneron_error(a8::TcpListener*, int type, int errorid) a8::XParams() .SetParam1(errorid) ); + abort(); } void GGListener::Init() From f168e1128c5eec8804bec87cecd03a4091297c7c Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Sat, 8 Oct 2022 12:50:55 +0800 Subject: [PATCH 2/2] 1 --- server/bin/restart.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/bin/restart.sh b/server/bin/restart.sh index 5e26e34e..b8ff86e8 100755 --- a/server/bin/restart.sh +++ b/server/bin/restart.sh @@ -1,7 +1,7 @@ #!/bin/bash -source /etc/profile -source /root/.bash_profile +#source /etc/profile +#source /root/.bash_profile pid=$(ps -ef|grep "gameserver2006 -n $2 -i $1"|grep -v grep|awk '{print $2}') echo $pid @@ -13,4 +13,4 @@ else echo "pid 为空" fi -nohup ./gameserver2006 -n $2 -i $1 >> gameserver2006$2_$1.out & +nohup ./gameserver2006 -n $2 -i $1 >> gameserver2006$2_$1.out 2>$1 &