locationtriggering/tsrc/lbtengine_test/ClientServerSetup/src/ClientServerSetupBlocks.cpp
branchRCL_3
changeset 44 2b4ea9893b66
parent 0 667063e416a2
child 45 6b6920c56e2f
equal deleted inserted replaced
42:02ba3f1733c6 44:2b4ea9893b66
   918     TInt result;
   918     TInt result;
   919     TFullName name;
   919     TFullName name;
   920 	result = findLBTServer.Next(name);
   920 	result = findLBTServer.Next(name);
   921 	
   921 	
   922 	if (result == KErrNone)
   922 	if (result == KErrNone)
   923 	{
   923         {
   924 	//TInt res;
   924         _LIT(KProcessName,"lbtserver.exe") ;
   925 	_LIT(KProcessName,"lbtserver.exe") ;
   925         RProcess aProcess;
   926 	RProcess aProcess;
   926         TInt res = aProcess.Open(KProcessName);
   927     TInt res = aProcess.Open(KProcessName);
   927         aProcess.Kill(0);
   928     aProcess.Kill(0);
   928         }
   929 
   929 
   930 //	return KErrNone;
       
   931 	}
       
   932 	else
       
   933 	{
       
   934 		
       
   935 	}
       
   936 	result = findLBTServer.Next(name);
   930 	result = findLBTServer.Next(name);
   937 	if (result == KErrNone)
   931         if (result == KErrNone)
   938 	{
   932         {
   939 	iLog->Log(_L("server started again"));  	
   933         iLog->Log(_L("server started again"));  	
   940 	}
   934         }
   941 	
   935 	
   942 return KErrNone;
   936     return KErrNone;
   943     }
   937     }
   944     
   938     
   945 
   939 
   946     
   940     
   947     
   941