peloton
peloton copied to clipboard
Socket bind failure handling
If I run Peloton, then run another instance. In the second instance:
Peloton does a bit of initialization, then fails on the socket bind (expected), and throws an exception The exception is caught and peloton exits. Two problems:
- Peloton exits, silently. Exit code is 0, indicating a normal exit. This is incorrect. It should return an appropriate error exit value.
- It does this silently. It should log an error. It encountered a fatal, non-recoverable error and quit.