You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On 16.04 with the ros-kinetic-gazebo-ros debian, whenever I use CTRL-Q to exit Gazebo launched with rosrun gazebo_ros gazebo, I get the following error message:
/opt/ros/kinetic/lib/gazebo_ros/gazebo: 36: kill: invalid signal number or name: SIGINT
The gzserver process remains alive in the background and I have to kill it manually.
The text was updated successfully, but these errors were encountered:
The signal names seem to have changed on some OS's. We fixed OSX in #364 but haven't fixed xenial yet. I suggested the following in #364 (comment) but I haven't tested it:
diff --git a/gazebo_ros/scripts/gazebo b/gazebo_ros/scripts/gazebo
index 392dac7..3edbf83 100755
--- a/gazebo_ros/scripts/gazebo
+++ b/gazebo_ros/scripts/gazebo
@@ -6,10 +6,8 @@ final="$@"
final=`echo "$final" | sed 's/[^ ]*:=[^ ]* \?//g'`
EXT=so
-SIGNAL=SIGINT
if [ $(uname) = "Darwin" ]; then
EXT=dylib
- SIGNAL=INT
fi
# add ros path plugin if it does not already exist in the passed in arguments
@@ -40,4 +38,4 @@ GAZEBO_MASTER_URI="$desired_master_uri" gzserver $final &
GAZEBO_MASTER_URI="$desired_master_uri" gzclient $client_final
# Kill the server
-kill -s $SIGNAL $!
+kill -n 2 $!
On 16.04 with the ros-kinetic-gazebo-ros debian, whenever I use CTRL-Q to exit Gazebo launched with
rosrun gazebo_ros gazebo
, I get the following error message:The gzserver process remains alive in the background and I have to kill it manually.
The text was updated successfully, but these errors were encountered: