Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
fp2-dev
/
platform
/
external
/
valgrind
/
f38dad945c5b8815916b9e5c288ebb725eaf591c
/
.
/
none
/
tests
/
fdleak_pipe.c
blob: 6c2d566d18a553c7b83815440c2d8b018a5155f2 [
file
] [
log
] [
blame
]
#include
<unistd.h>
int
main
(
int
argc
,
char
**
argv
)
{
int
fds
[
2
];
/*
* Fedora Core 1's Perl opens /dev/pts/2 as fd 10. Let's close it
* now to get consistent results across different releases.
*/
close
(
10
);
pipe
(
fds
);
return
0
;
}