[openrtm-commit:03363] r3436 - branches/RELENG_1_2/OpenRTM-aist/utils/rtm-naming

openrtm @ openrtm.org openrtm @ openrtm.org
2018年 11月 7日 (水) 15:24:23 JST


Author: kawauchi
Date: 2018-11-07 15:24:23 +0900 (Wed, 07 Nov 2018)
New Revision: 3436

Modified:
   branches/RELENG_1_2/OpenRTM-aist/utils/rtm-naming/rtm-naming.in
Log:
[compat,->trunk] Improved termination processing when the omniNames process on the specified port does not exist.  refs #4627


Modified: branches/RELENG_1_2/OpenRTM-aist/utils/rtm-naming/rtm-naming.in
===================================================================
--- branches/RELENG_1_2/OpenRTM-aist/utils/rtm-naming/rtm-naming.in	2018-11-07 01:21:51 UTC (rev 3435)
+++ branches/RELENG_1_2/OpenRTM-aist/utils/rtm-naming/rtm-naming.in	2018-11-07 06:24:23 UTC (rev 3436)
@@ -102,13 +102,10 @@
     fi
     debug "A possible process that is using $_port port:" $_netstat
     if test "x$_netstat" = "x"; then
+        echo "No process using port number ${_port} on the system."
         debug "No process using port number ${_port} on the system."
         return 1
     fi
-    if test "x$_netstat" = "x"; then
-        debug "Process information could not be identified."
-        return 1
-    fi
 
     _pid=`echo $_netstat | awk 'BEGIN{FS="/";}{print $1;}'`
     pname_of_nsport=`echo $_netstat | awk 'BEGIN{FS="/";}{print $2;}'`
@@ -226,8 +223,7 @@
         fi
     else
         debug "The process information using the port could not be obtained."
-        pname_of_nsport=$pname
-        pid_of_nsport=`pgrep $pname`
+        exit 1
     fi
 }
 



openrtm-commit メーリングリストの案内