mirror of
				git://git.code.sf.net/p/cdesktopenv/code
				synced 2025-03-09 15:50:02 +00:00 
			
		
		
		
	Restore original tail functionality in ttsnoop, with POSIX args
				
					
				
			This commit is contained in:
		
							parent
							
								
									de69b56458
								
							
						
					
					
						commit
						041788debc
					
				
					 1 changed files with 8 additions and 4 deletions
				
			
		| 
						 | 
					@ -517,8 +517,10 @@ main(int argc, char **argv)
 | 
				
			||||||
	    }
 | 
						    }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    apiTracerArgv[ 0 ] = "tail";
 | 
					    apiTracerArgv[ 0 ] = "tail";
 | 
				
			||||||
    apiTracerArgv[ 1 ] = "-f";
 | 
					    apiTracerArgv[ 1 ] = "-n";
 | 
				
			||||||
    apiTracerArgv[ 2 ] = traceFile;
 | 
					    apiTracerArgv[ 2 ] = "+0";
 | 
				
			||||||
 | 
					    apiTracerArgv[ 3 ] = "-f";
 | 
				
			||||||
 | 
					    apiTracerArgv[ 4 ] = traceFile;
 | 
				
			||||||
    if (snoopFile == 0) {
 | 
					    if (snoopFile == 0) {
 | 
				
			||||||
	    //
 | 
						    //
 | 
				
			||||||
	    // Set up fifo for snoop output
 | 
						    // Set up fifo for snoop output
 | 
				
			||||||
| 
						 | 
					@ -530,8 +532,10 @@ main(int argc, char **argv)
 | 
				
			||||||
	    }
 | 
						    }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    snooperArgv[ 0 ] = "tail";
 | 
					    snooperArgv[ 0 ] = "tail";
 | 
				
			||||||
    snooperArgv[ 1 ] = "-f";
 | 
					    snooperArgv[ 1 ] = "-n";
 | 
				
			||||||
    snooperArgv[ 2 ] = snoopFile;
 | 
					    snooperArgv[ 2 ] = "+0";
 | 
				
			||||||
 | 
					    snooperArgv[ 3 ] = "-f";
 | 
				
			||||||
 | 
					    snooperArgv[ 4 ] = snoopFile;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (optind < argc) {
 | 
					    if (optind < argc) {
 | 
				
			||||||
	    if (committed2Snooping) {
 | 
						    if (committed2Snooping) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue