miniupnp.tuxfamily.org Forum Index miniupnp.tuxfamily.org
The forum about miniupnp and libnatpmp
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

miniupnpd 20090214 reload_from_lease_file , lease_file_add

 
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> miniupnpd Bugs
View previous topic :: View next topic  
Author Message
jimmywei



Joined: 10 Jan 2008
Posts: 8

PostPosted: Tue Apr 21, 2009 8:28 am    Post subject: miniupnpd 20090214 reload_from_lease_file , lease_file_add Reply with quote

Within reload_from_lease_file()
it opens lease file, then call upnp_redirect().

In this time, the file descriptor is still being used, not closed.

But upnp_redirect() will finally call lease_file_add() which
will open lease file with "a" to add the rule.

Would that cause any un-expected issue ?

Maybe we can move to the lease file to a temperately file in reload_from_lease_file() first ?
Back to top
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1518

PostPosted: Thu Jun 04, 2009 11:37 pm    Post subject: Reply with quote

I think i fixed this problem in miniupnpd-20090605.tar.gz
_________________
Main miniUPnP author.
http://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> miniupnpd Bugs All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP
© 2007 Thomas Bernard, author of MiniUPNP.