Project

General

Profile

« Previous | Next » 

Revision 7418

import_all: Moved `waitpid $jobs` into after_import()

View differences:

import_all
38 38
    
39 39
    . "$selfDir/with_all" import_scrub "$@"
40 40
    
41
    local jobs="$(jobs -p)"
42
    echo "import_scrub PIDs: $jobs" >&2
43
    
41 44
    after_import ()
42 45
    {
46
        bin/waitpid $jobs
47
        
43 48
        bin/make_analytical_db
44 49
        
45 50
        make backups/TNRS.backup-remake &
......
47 52
        wait # wait for asynchronous commands
48 53
    }
49 54
    
50
    local jobs="$(jobs -p)"
51
    echo "import_scrub PIDs: $jobs" >&2
52
    (bin/waitpid $jobs; after_import) &
55
    after_import &
53 56
    echo "after_import PID: $!" >&2
54 57
    
55 58
    . bin/disown_all

Also available in: Unified diff