mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	* io.c (rb_io_fsync): need to fsync even if on Windows. fixed mistake of
r45254 and r45256. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45258 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									9e5f063138
								
							
						
					
					
						commit
						8b48053beb
					
				
					 2 changed files with 5 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -1,3 +1,8 @@
 | 
			
		|||
Mon Mar  3 04:37:50 2014  NAKAMURA Usaku  <usa@ruby-lang.org>
 | 
			
		||||
 | 
			
		||||
	* io.c (rb_io_fsync): need to fsync even if on Windows.  fixed mistake
 | 
			
		||||
	  of r45254 and r45256.
 | 
			
		||||
 | 
			
		||||
Mon Mar  3 04:21:34 2014  NAKAMURA Usaku  <usa@ruby-lang.org>
 | 
			
		||||
 | 
			
		||||
	* test/win32ole: get rid of warnings (unused variable).
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										2
									
								
								io.c
									
										
									
									
									
								
							
							
						
						
									
										2
									
								
								io.c
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -1925,10 +1925,8 @@ rb_io_fsync(VALUE io)
 | 
			
		|||
 | 
			
		||||
    if (io_fflush(fptr) < 0)
 | 
			
		||||
        rb_sys_fail(0);
 | 
			
		||||
# ifndef _WIN32
 | 
			
		||||
    if ((int)rb_thread_io_blocking_region(nogvl_fsync, fptr, fptr->fd) < 0)
 | 
			
		||||
	rb_sys_fail_path(fptr->pathv);
 | 
			
		||||
# endif
 | 
			
		||||
    return INT2FIX(0);
 | 
			
		||||
}
 | 
			
		||||
#else
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue