Re: [Rd] file descriptor leak in getSrcLines in R 2.10.0 svn 48590

2009-05-23 Thread Duncan Murdoch
On 22/05/2009 11:29 AM, Duncan Murdoch wrote: On 5/21/2009 2:17 PM, William Dunlap wrote: I noticed the following file descriptor leak when I couldn't remove a package unless I shut down the R session that had loaded and used it. The function that triggered the problem printed the output of a c

Re: [Rd] file descriptor leak in getSrcLines in R 2.10.0 svn 48590

2009-05-22 Thread Duncan Murdoch
On 5/22/2009 11:17 AM, William Dunlap wrote: ... The idea is that if the srcfile is already open, then it should be left open; but if it is not open, it should be closed at the end. open() on an open srcfile is supposed to make no change to the srcfile, just return the already open connecti

Re: [Rd] file descriptor leak in getSrcLines in R 2.10.0 svn 48590

2009-05-22 Thread Duncan Murdoch
On 5/21/2009 2:17 PM, William Dunlap wrote: I noticed the following file descriptor leak when I couldn't remove a package unless I shut down the R session that had loaded and used it. The function that triggered the problem printed the output of a call to parse(). Each time one prints a srcref

Re: [Rd] file descriptor leak in getSrcLines in R 2.10.0 svn 48590

2009-05-22 Thread William Dunlap
> ... > The idea is that if the srcfile is already open, then it > should be left > open; but if it is not open, it should be closed at the end. > open() on > an open srcfile is supposed to make no change to the srcfile, just > return the already open connection. > > > (It looks like the sr

Re: [Rd] file descriptor leak in getSrcLines in R 2.10.0 svn 48590

2009-05-22 Thread Duncan Murdoch
On 5/21/2009 2:17 PM, William Dunlap wrote: I noticed the following file descriptor leak when I couldn't remove a package unless I shut down the R session that had loaded and used it. The function that triggered the problem printed the output of a call to parse(). Each time one prints a srcref

Re: [Rd] file descriptor leak in getSrcLines in R 2.10.0 svn 48590

2009-05-21 Thread Duncan Murdoch
On 5/21/2009 2:17 PM, William Dunlap wrote: I noticed the following file descriptor leak when I couldn't remove a package unless I shut down the R session that had loaded and used it. The function that triggered the problem printed the output of a call to parse(). Each time one prints a srcref

[Rd] file descriptor leak in getSrcLines in R 2.10.0 svn 48590

2009-05-21 Thread William Dunlap
I noticed the following file descriptor leak when I couldn't remove a package unless I shut down the R session that had loaded and used it. The function that triggered the problem printed the output of a call to parse(). Each time one prints a srcref a connection is opened and not closed. It loo