Browse Source

Only fork for peak building when necessary.

tags/non-daw-v1.1.0
Jonathan Moore Liles 17 years ago
parent
commit
9cbc39addd
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      Timeline/Peaks.C

+ 3
- 2
Timeline/Peaks.C View File

@@ -268,9 +268,10 @@ Peaks::open ( void )

int fd;

if ( ! current() )
/* Build peaks asyncronously */
if ( ! fork() )
exit( make_peaks( 256 ) );
if ( ! fork() )
exit( make_peaks( 256 ) );

if ( ( fd = ::open( peakname( filename ), O_RDONLY ) ) < 0 )
return false;


Loading…
Cancel
Save