This commit is contained in:
@@ -61,7 +61,7 @@ wp_intern WpCmdResult executeCommand(WpStr8RO *cmd, WpCmdOutHandling out_handlin
|
||||
}
|
||||
|
||||
i32 st = EXIT_SUCCESS;
|
||||
err = _getOutputStatus(fp, &st);
|
||||
err = getOutputStatus(fp, &st);
|
||||
if (err > WP_SHELL_ERR_NO_ERROR) {
|
||||
output = wpCmdNoExit(err);
|
||||
goto executeCommand_CLOSE;
|
||||
|
||||
@@ -20,7 +20,7 @@ BEGIN_C_LINKAGE
|
||||
|
||||
WpCmdResult wpShellCommanderExecute(WpCmdOutHandling out_handling, WpStr8 *out_buf, const WpStr8List *cmd);
|
||||
|
||||
wp_extern WpCmdError _getOutputStatus(FILE *fp, i32 *status_out);
|
||||
wp_extern WpCmdError getOutputStatus(FILE *fp, i32 *status_out);
|
||||
|
||||
#ifdef WP_PLATFORM_CPP
|
||||
END_C_LINKAGE
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
WpCmdError _getOutputStatus(FILE *fp, i32 *status_out) {
|
||||
WpCmdError getOutputStatus(FILE *fp, i32 *status_out) {
|
||||
*status_out = wpShellUtilsPclose(fp);
|
||||
|
||||
if (!WIFEXITED(*status_out)) {
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
#include "../../utils/shell_utils.h"
|
||||
#include <stdio.h>
|
||||
|
||||
WpCmdError _getOutputStatus(FILE *fp, i32 *status_out) {
|
||||
WpCmdError getOutputStatus(FILE *fp, i32 *status_out) {
|
||||
if (!feof(fp)) {
|
||||
// Ensure process is closed on failure
|
||||
wpShellUtilsPclose(fp);
|
||||
|
||||
Reference in New Issue
Block a user