diff --git a/paddle/fluid/framework/io/shell.cc b/paddle/fluid/framework/io/shell.cc index 937f053bf848cc29261fbac4708e636653803eb4..62a79f1cb629b9c775f6ba35e444f0f4e5a0eb62 100644 --- a/paddle/fluid/framework/io/shell.cc +++ b/paddle/fluid/framework/io/shell.cc @@ -133,7 +133,12 @@ static int shell_popen_fork_internal(const char* real_cmd, bool do_read, } close_open_fds_internal(); + +#if defined(PADDLE_WITH_MUSL) + PCHECK(execl("/bin/sh", "sh", "-c", real_cmd, NULL) >= 0); +#else PCHECK(execl("/bin/bash", "bash", "-c", real_cmd, NULL) >= 0); +#endif // Note: just for compilation. the child don't run this line. _exit(0); #endif