Revision 14073
Added by Aaron Marcuse-Kubitza over 10 years ago
trunk/bin/import_all | ||
---|---|---|
38 | 38 |
export version by_col full_import |
39 | 39 |
|
40 | 40 |
if test ! "${log-1}"; then local delete_logs=1; fi #log=='' |
41 |
trap delete_logs EXIT SIGINT SIGTERM
|
|
41 |
trap delete_logs SIGINT SIGTERM #not EXIT b/c doesn't run until *shell* exit
|
|
42 | 42 |
|
43 | 43 |
local log=1 # always use log files for background processes |
44 | 44 |
|
... | ... | |
72 | 72 |
. bin/disown_all |
73 | 73 |
|
74 | 74 |
popd |
75 |
delete_logs # manually run b/c `trap EXIT` doesn't run until bg cmds done
|
|
75 |
delete_logs # manually run b/c `trap EXIT` doesn't run until *shell* exit
|
|
76 | 76 |
} |
77 | 77 |
main "$@" |
Also available in: Unified diff
bin/import_all: delete_logs(): documented that `trap EXIT` doesn't run until shell exit