lib/misc/exec.cc
changeset 2 b3afb9f1e801
parent 0 6f7a81934006
equal deleted inserted replaced
1:30113bfbe723 2:b3afb9f1e801
    15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    16 
    16 
    17 #include <config.h>
    17 #include <config.h>
    18 #include <errno.h>
    18 #include <errno.h>
    19 #include <stdlib.h>
    19 #include <stdlib.h>
       
    20 #include <string.h>
    20 #include <sys/stat.h>
    21 #include <sys/stat.h>
    21 #include <sys/types.h>
    22 #include <sys/types.h>
    22 #include <sys/wait.h>
    23 #include <sys/wait.h>
    23 #include <unistd.h>
    24 #include <unistd.h>
    24 #include "exec.h"
    25 #include "exec.h"
    82     return 0;
    83     return 0;
    83 }
    84 }
    84   
    85   
    85 int execute(const mystring& name)
    86 int execute(const mystring& name)
    86 {
    87 {
    87   int i = execute(config, name);
    88   return execute(config, name);
    88   return (i == 99) ? 0 : i;
       
    89 }
    89 }