call pcntl_signal_dispatch in consume to make the script able to handle posix signals.
Merge pull request #34 from stratiator/master

call pcntl_signal_dispatch in consume to make the script able to handle posix signals