We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ee9e916 commit 2a2c5b4Copy full SHA for 2a2c5b4
tests/clar/fs.h
@@ -277,32 +277,6 @@ cl_fs_cleanup(void)
277
# include <copyfile.h>
278
#endif
279
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
306
static void basename_r(const char **out, int *out_len, const char *in)
307
{
308
size_t in_len = strlen(in), start_pos;
0 commit comments