From: Martin Quinson Date: Fri, 14 Apr 2017 13:25:40 +0000 (+0200) Subject: this static function is now useless X-Git-Tag: v3.16~354 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/2155dbd23cfe5c344d2ac177e7bfee31e9259ff9 this static function is now useless --- diff --git a/src/smpi/smpi_global.cpp b/src/smpi/smpi_global.cpp index a05d57fe19..72dff8954d 100644 --- a/src/smpi/smpi_global.cpp +++ b/src/smpi/smpi_global.cpp @@ -444,17 +444,6 @@ static void smpi_init_options(){ } } -static int execute_command(const char * const argv[]) -{ - pid_t pid; - int status; - if (posix_spawnp(&pid, argv[0], nullptr, nullptr, (char* const*) argv, environ) != 0) - return 127; - if (waitpid(pid, &status, 0) != pid) - return 127; - return status; -} - typedef std::function smpi_entry_point_type; typedef int (* smpi_c_entry_point_type)(int argc, char **argv); typedef void (* smpi_fortran_entry_point_type)(void);