summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2020-05-23 15:57:48 +0100
committerEdward Thomson <ethomson@edwardthomson.com>2020-06-02 09:03:48 +0100
commit2a2c5b40274eeea55b049d3c3d7f2d733a0b137a (patch)
tree9aa8bcb730c0dce3357bfc5f2f6a0d63ae78c538
parentee9e916308e892888e310fd81ca0f8862e1a2069 (diff)
downloadlibgit2-ethomson/clar_internal.tar.gz
clar: remove unused shell_out functionethomson/clar_internal
-rw-r--r--tests/clar/fs.h26
1 files changed, 0 insertions, 26 deletions
diff --git a/tests/clar/fs.h b/tests/clar/fs.h
index 6c63a0d3e..87d345132 100644
--- a/tests/clar/fs.h
+++ b/tests/clar/fs.h
@@ -277,32 +277,6 @@ cl_fs_cleanup(void)
# include <copyfile.h>
#endif
-static int
-shell_out(char * const argv[])
-{
- int status, piderr;
- pid_t pid;
-
- pid = fork();
-
- if (pid < 0) {
- fprintf(stderr,
- "System error: `fork()` call failed (%d) - %s\n",
- errno, strerror(errno));
- exit(-1);
- }
-
- if (pid == 0) {
- execv(argv[0], argv);
- }
-
- do {
- piderr = waitpid(pid, &status, WUNTRACED);
- } while (piderr < 0 && (errno == EAGAIN || errno == EINTR));
-
- return WEXITSTATUS(status);
-}
-
static void basename_r(const char **out, int *out_len, const char *in)
{
size_t in_len = strlen(in), start_pos;