projects
/
oweals
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add functions to return FIPS module version.
[oweals/openssl.git]
/
apps
/
speed.c
diff --git
a/apps/speed.c
b/apps/speed.c
index 2d34310e61434571f78385b64c33baa6f00177da..d4b0fddf7b8113b209aa48800f8ddecfa3bb6bda 100644
(file)
--- a/
apps/speed.c
+++ b/
apps/speed.c
@@
-2644,7
+2644,11
@@
static int do_multi(int multi)
fds=malloc(multi*sizeof *fds);
for(n=0 ; n < multi ; ++n)
{
fds=malloc(multi*sizeof *fds);
for(n=0 ; n < multi ; ++n)
{
- pipe(fd);
+ if (pipe(fd) == -1)
+ {
+ fprintf(stderr, "pipe failure\n");
+ exit(1);
+ }
fflush(stdout);
fflush(stderr);
if(fork())
fflush(stdout);
fflush(stderr);
if(fork())
@@
-2656,7
+2660,11
@@
static int do_multi(int multi)
{
close(fd[0]);
close(1);
{
close(fd[0]);
close(1);
- dup(fd[1]);
+ if (dup(fd[1]) == -1)
+ {
+ fprintf(stderr, "dup failed\n");
+ exit(1);
+ }
close(fd[1]);
mr=1;
usertime=0;
close(fd[1]);
mr=1;
usertime=0;