1
  
2
  
3
  
4
  
5
  
6
  
7
  
8
  
9
  
10
  
11
  
12
  
13
  
#pike 8.1 
 
inherit Stdio.File : pre; 
 
this_program set_peek_file_before_read_callback(int(0..1) ignored) 
{ 
  // This hack is not necessary anymore - the backend now properly 
  // ignores events if other callbacks/threads have managed to read 
  // the data before the read callback. 
  return this; 
}