X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=app%2Ftest%2Fprocess.h;h=5b10cf64df23678461217dbe2d0be714c01dcedf;hb=88caad251c8de3a84e353b0b2a27014bc303df87;hp=a09a088477ad9e7815a4bee5b0e7949cc94e1d6e;hpb=a20cb9d0275eb7f0618b4ef2448544056e1035df;p=dpdk.git diff --git a/app/test/process.h b/app/test/process.h index a09a088477..5b10cf64df 100644 --- a/app/test/process.h +++ b/app/test/process.h @@ -90,6 +90,11 @@ process_dup(const char *const argv[], int numargs, const char *env_value) } while ((dirent = readdir(dir)) != NULL) { + + if (strcmp(dirent->d_name, ".") == 0 || + strcmp(dirent->d_name, "..") == 0) + continue; + errno = 0; fd = strtol(dirent->d_name, &endptr, 10); if (errno != 0 || endptr[0] != '\0') { @@ -110,6 +115,7 @@ process_dup(const char *const argv[], int numargs, const char *env_value) for (i = 0; i < num; i++) printf("'%s' ", argv_cpy[i]); printf("\n"); + fflush(stdout); /* set the environment variable */ if (setenv(RECURSIVE_ENV_VAR, env_value, 1) != 0)