Locking fix in SyncOnChanges mode.
This commit is contained in:
		
							parent
							
								
									a9588bebc7
								
							
						
					
					
						commit
						8bc5b5ee68
					
				
							
								
								
									
										5
									
								
								osync.sh
								
								
								
								
							
							
						
						
									
										5
									
								
								osync.sh
								
								
								
								
							| 
						 | 
				
			
			@ -1980,9 +1980,9 @@ function SyncOnChanges
 | 
			
		|||
	do
 | 
			
		||||
		if [ "$ConfigFile" != "" ]
 | 
			
		||||
		then
 | 
			
		||||
        		cmd="bash $osync_cmd \"$ConfigFile\" $opts --no-locks"
 | 
			
		||||
			cmd="bash $osync_cmd \"$ConfigFile\" $opts"
 | 
			
		||||
		else
 | 
			
		||||
			cmd="bash $osync_cmd $opts --no-locks"
 | 
			
		||||
			cmd="bash $osync_cmd $opts"
 | 
			
		||||
		fi
 | 
			
		||||
		eval $cmd
 | 
			
		||||
		retval=$?
 | 
			
		||||
| 
						 | 
				
			
			@ -2096,6 +2096,7 @@ do
 | 
			
		|||
		;;
 | 
			
		||||
		--on-changes)
 | 
			
		||||
		sync_on_changes=1
 | 
			
		||||
		nolocks=1
 | 
			
		||||
		;;
 | 
			
		||||
		--no-locks)
 | 
			
		||||
		nolocks=1
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue