Amfpm Tool Returns Zero Exit Code On Failure To Start Passive Monitoring (Doc ID 1528416.1)

Last updated on FEBRUARY 13, 2013

Applies to:

Oracle Communications OpenSAFfire - Version 6.2.0 and later
Information in this document applies to any platform.

Symptoms

The amfpm tool returns zero even when it fails to start passive monitoring.

If the call to saAmfPmStart() fails, amfpm outputs an error to stdout, but then it continues until it hits the bottom of the main() method where it returns zero. This causes problems when using amfpm within BASH scripts and checking the return status.

 

Ideally, when the saAmfPmStart call fails, amfpm should exit with EXIT_FAILURE, as it does elsewhere in the application.

 

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms