[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/work/kdepim-3.5.5+/kpilot/lib
From:       Jason vanRijn Kasper <vR () movingparts ! net>
Date:       2007-02-19 18:57:23
Message-ID: 1171911443.325660.10277.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 635298 by vanrijn:

putting ::close() back in, unfortunately.  looks like pi_close() still doesn't release the socket

 M  +5 -0      branches/work/kdepim-3.5.5+/kpilot/lib/kpilotdevicelink.cc  


--- branches/work/kdepim-3.5.5+/kpilot/lib/kpilotdevicelink.cc #635297:635298
@@ -352,6 +352,7 @@
 	if (link()->fCurrentPilotSocket != -1)
 	{
 		pi_close(link()->fCurrentPilotSocket);
+		::close(link()->fCurrentPilotSocket);
 	}
 	link()->fCurrentPilotSocket = (-1);
 
@@ -592,10 +593,12 @@
 	if (link()->fCurrentPilotSocket != -1)
 	{
 		pi_close(link()->fCurrentPilotSocket);
+		::close(link()->fCurrentPilotSocket);
 	}
 	if (link()->fPilotMasterSocket != -1)
 	{
 		pi_close(link()->fPilotMasterSocket);
+		::close(link()->fPilotMasterSocket);
 	}
 	DeviceMap::self()->unbindDevice( link()->fRealPilotPath );
 	link()->fPilotMasterSocket = (-1);
@@ -746,10 +749,12 @@
 	if (fCurrentPilotSocket != -1)
 	{
 		pi_close(fCurrentPilotSocket);
+		::close(fCurrentPilotSocket);
 	}
 	if (fPilotMasterSocket != -1)
 	{
 		pi_close(fPilotMasterSocket);
+		::close(fPilotMasterSocket);
 	}
 	DeviceMap::self()->unbindDevice( fRealPilotPath );
 	fPilotMasterSocket = (-1);
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic