veyron/services/mgmt: Use meaningful visible names for apps, rather than having
them all called "bin" in ps.

Apps now have a name of the form <title>@<binary>/app constructed from the
envelope, such as
     rpsbot@binaryd/rpsbot/x86/20150219/app

The name is passed in argv[0] and always has the suffix /app, ensuring that
log file names will always be named app.INFO, etc as log file names are
constructed from basename(argv[0]). Also, any unprintable
characters in argv[0] are flattened to '_'

For now, the executable on disk continues to be named "bin".

Change-Id: Ie3120310d5f0bb0bbd8a48baa8c6e5971f3d14ef
6 files changed
tree: 2922a61630d83120aa9f1424cfba082f2cff5423
  1. lib/
  2. profiles/
  3. runtimes/
  4. security/
  5. services/
  6. tools/