~andersk/sreadahead/qsort

« back to all changes in this revision

Viewing changes to sreadahead.c

  • Committer: Scott James Remnant
  • Date: 2009-07-20 15:49:22 UTC
  • Revision ID: scott@netsplit.com-20090720154922-1brwnrpiiqbfhe2i
Sleep forever with -t 0

Show diffs side-by-side

added added

removed removed

Lines of Context:
671
671
                        signal(SIGTERM, trace_stop);
672
672
                        if (no_fork)
673
673
                                signal(SIGINT, trace_stop);
674
 
                        sleep(max_time);
 
674
                        if (max_time > 0)
 
675
                                sleep(max_time);
 
676
                        else
 
677
                                pause();
675
678
                        /*
676
679
                         * abort if we don't get a signal, so we can stop
677
680
                         * the tracing and minimize the trace buffer size