git-svn-id: http://svn.eurecom.fr/openair4G/trunk@6159 818b1a75-f10b-46b9-bf7c-635c3b92a50f

This commit is contained in:
Lionel Gauthier
2014-12-04 12:15:05 +00:00
parent 90717e42a6
commit e6eb589ef4
+4 -1
View File
@@ -132,7 +132,9 @@ sgw_ipv6_mask_in6_addr(
int spgw_system(char *command_pP, int abort_on_errorP) { int spgw_system(char *command_pP, int abort_on_errorP) {
int ret = 0; int ret = -1;
if (command_pP) {
SPGW_APP_INFO("system command: %s\n",command_pP);
ret = system(command_pP); ret = system(command_pP);
if (ret < 0) { if (ret < 0) {
SPGW_APP_ERROR("ERROR in system command %s: %d\n", SPGW_APP_ERROR("ERROR in system command %s: %d\n",
@@ -141,6 +143,7 @@ int spgw_system(char *command_pP, int abort_on_errorP) {
exit(-1); // may be not exit exit(-1); // may be not exit
} }
} }
}
return ret; return ret;
} }