Allow CLI api to directly specify Unix process return code
Bug1275617. Existing code only accept a boolean value for the $error
parameter, and return 0 or 127 for success or failure. This patch
allows you to pass an int for the $error parameter, in which case
that int is used as the return code. If you pass a boolean, we use
the old 0/127 behavior.
Reviewed: https:/ /reviews. mahara. org/2979 gitorious. org/mahara/ mahara/ commit/ 8725ae5da3927a2 addaade20ea620d 4a51a71b1a
Committed: http://
Submitter: Son Nguyen (<email address hidden>)
Branch: master
commit 8725ae5da3927a2 addaade20ea620d 4a51a71b1a
Author: Aaron Wells <email address hidden>
Date: Mon Feb 3 17:56:30 2014 +1300
Allow CLI api to directly specify Unix process return code
Bug1275617. Existing code only accept a boolean value for the $error
parameter, and return 0 or 127 for success or failure. This patch
allows you to pass an int for the $error parameter, in which case
that int is used as the return code. If you pass a boolean, we use
the old 0/127 behavior.
Change-Id: I96637f9c896184 dc36c51bb968284 f47f4fbc864