mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-03 18:13:01 +00:00
still open files is dumped out exit. Enabled using the --track-fds switch. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2031
18 lines
263 B
C
18 lines
263 B
C
#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;
|
|
}
|