Ask Your Question
5

List of possible exit codes from Roslaunch

asked 2011-08-30 06:01:49 -0600

Chad Rockey gravatar image

So I've been seeing exit codes come out of roslaunch, example:

[process name] process has died [pid 1234, exit code -11].

I have seen mostly negative exit codes. Are these signals/bash exit codes? -11 appears to be a Seg Fault. What's -6?

Is there a chart of the possible values it could send out and does it send out user exit codes as well?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
10

answered 2011-08-30 08:32:17 -0600

Brian Gerkey gravatar image

updated 2011-08-30 08:33:53 -0600

By convention, a negative exit code corresponds to the number of the signal that caused the process to die. E.g., -11 is SIGSEGV, and -6 is SIGABRT. For a list of signals, have a look at /usr/include/bits/signum.h (at least on my Ubuntu Lucid system, that's where they're defined).

Btw, this behavior and the meaning of the numbers isn't specific to roslaunch; roslaunch is just reporting back the exit code that the process gave when it died.

edit flag offensive delete link more

Comments

I found the file with find /usr -name signum.h in /usr/include/x86_64-linux-gnu/bits/signum.h

lalten gravatar imagelalten ( 2016-05-13 12:24:37 -0600 )edit

You can also use kill -l to get a list of signals with their numbers.

chfritz gravatar imagechfritz ( 2019-10-30 12:53:47 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2011-08-30 06:01:49 -0600

Seen: 8,507 times

Last updated: Aug 30 '11