Working DTSC Merge
This commit is contained in:
		
							parent
							
								
									1cf6e34745
								
							
						
					
					
						commit
						06b5596b2a
					
				
					 1 changed files with 3 additions and 5 deletions
				
			
		| 
						 | 
				
			
			@ -476,16 +476,14 @@ DTSC::File::File(const File & rhs){
 | 
			
		|||
DTSC::File & DTSC::File::operator =(const File & rhs){
 | 
			
		||||
  created = rhs.created;
 | 
			
		||||
  if (rhs.F){
 | 
			
		||||
    int tmpFd = fileno(rhs.F);
 | 
			
		||||
    int newFd = dup(tmpFd);
 | 
			
		||||
    F = fdopen( newFd, (created ? "w+b": "r+b"));
 | 
			
		||||
    F = fdopen( dup(fileno(rhs.F)), (created ? "w+b": "r+b"));
 | 
			
		||||
  }else{
 | 
			
		||||
    F = 0;
 | 
			
		||||
  }
 | 
			
		||||
  endPos = rhs.endPos;
 | 
			
		||||
  strbuffer = rhs.strbuffer;
 | 
			
		||||
  jsonbuffer = rhs.jsonbuffer;
 | 
			
		||||
  metadata = rhs.metadata;
 | 
			
		||||
  metaStorage = rhs.metaStorage;
 | 
			
		||||
  metadata = metaStorage;
 | 
			
		||||
  currtime = rhs.currtime;
 | 
			
		||||
  lastreadpos = rhs.lastreadpos;
 | 
			
		||||
  headerSize = rhs.headerSize;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue