Commit e6eb589e authored by Lionel Gauthier's avatar Lionel Gauthier

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@6159 818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent 90717e42
......@@ -132,13 +132,16 @@ sgw_ipv6_mask_in6_addr(
int spgw_system(char *command_pP, int abort_on_errorP) {
int ret = 0;
ret = system(command_pP);
if (ret < 0) {
SPGW_APP_ERROR("ERROR in system command %s: %d\n",
int ret = -1;
if (command_pP) {
SPGW_APP_INFO("system command: %s\n",command_pP);
ret = system(command_pP);
if (ret < 0) {
SPGW_APP_ERROR("ERROR in system command %s: %d\n",
command_pP,ret);
if (abort_on_errorP) {
exit(-1); // may be not exit
if (abort_on_errorP) {
exit(-1); // may be not exit
}
}
}
return ret;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment