File descriptors 0, 1, and 2 are respectively: standard input, standard output,
and standard error.
Programs generally tend to exit without closing them, so it's natural that they
would still be open at exit, as Valgrind diagnoses.
I'm guessing it's telling you that because of the --track-fds=yes option you
used, or else because of the verbose (-v) option.
Fred Smith
Senior Applications Programmer/Analyst
Computrition, Inc.
175 Middlesex Turnpike
Bedford, MA 01730
ph: 781-275-4488 x5013
fax: 781-357-4100
From: Martin Ichilevici de Oliveira [mailto:martin.i.olive...@gmail.com]
Sent: Tuesday, September 11, 2012 1:05 PM
To: valgrind-users@lists.sourceforge.net
Subject: [Valgrind-users] Understanding open file descriptor at exit
Hello,
When I ran valgrind, I got the following message, which I'm having trouble
understand.
==21285== FILE DESCRIPTORS: 3 open at exit.
==21285== Open file descriptor 2: /dev/pts/1
==21285== <inherited from parent>
==21285==
==21285== Open file descriptor 1: /dev/pts/1
==21285== <inherited from parent>
==21285==
==21285== Open file descriptor 0: /dev/pts/1
==21285== <inherited from parent>
Isn't /dev/pts/1 my terminal?
I don't know if matters for this question, but I used the following options for
valgrind:
--tool=memcheck --leak-check=full --show-reachable=yes --num-callers=20
--track-fds=yes -v
Thank you,
Martin
This email and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to which they are addressed. If
you have received this email in error please notify the system manager. Please
note that any views or opinions presented in this email are solely those of the
author and do not necessarily represent those of the company. Finally, the
recipient should check this email and any attachments for the presence of
viruses. The company accepts no liability for any damage caused by any virus
transmitted by this email
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users