Skip to content

Commit 2a2c5b4

Browse files
committed
clar: remove unused shell_out function
1 parent ee9e916 commit 2a2c5b4

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

tests/clar/fs.h

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -277,32 +277,6 @@ cl_fs_cleanup(void)
277277
# include <copyfile.h>
278278
#endif
279279

280-
static int
281-
shell_out(char * const argv[])
282-
{
283-
int status, piderr;
284-
pid_t pid;
285-
286-
pid = fork();
287-
288-
if (pid < 0) {
289-
fprintf(stderr,
290-
"System error: `fork()` call failed (%d) - %s\n",
291-
errno, strerror(errno));
292-
exit(-1);
293-
}
294-
295-
if (pid == 0) {
296-
execv(argv[0], argv);
297-
}
298-
299-
do {
300-
piderr = waitpid(pid, &status, WUNTRACED);
301-
} while (piderr < 0 && (errno == EAGAIN || errno == EINTR));
302-
303-
return WEXITSTATUS(status);
304-
}
305-
306280
static void basename_r(const char **out, int *out_len, const char *in)
307281
{
308282
size_t in_len = strlen(in), start_pos;

0 commit comments

Comments
 (0)