Flameeyes/scan2pdf — Issue #1: posix_system calls not waiting properly for completion
Author: chuckb
Created: 2011-12-28 14:06:52+00:00
State: open

When I run 3 or more page scans with an ADF, I get random failures of the conversion from unpaper to the next step. My guess is it's related to the fact that the substituted system call does not block like the original does. I will take a stab at fixing and make a pull request.

From https://github.com/rtomayko/posix-spawn:

> Note that spawn does not wait for the process to finish execution like system and does not reap the child's exit status -- you must call Process::waitpid (or equivalent) or the process will become a zombie.