mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-04 10:21:20 +00:00
so as to get consistent test results. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6392
18 lines
334 B
C
18 lines
334 B
C
#include <sys/socket.h>
|
|
#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); close(4);
|
|
|
|
socketpair(AF_UNIX, SOCK_STREAM, PF_UNIX, fds);
|
|
return 0;
|
|
}
|