Test: use poll() to check process return code.
Test: use poll() to check process return code.

shinken-monitoring/mod-logstore-mongodb,staute/shinken-mod-logstore-mongodb,staute/shinken-mod-logstore-mongodb,shinken-monitoring/mod-logstore-mongodb