wait for subprocess to finish
Merge pull request #3 from ivanov/noshellpdf

wait for subprocess to finish