An AWS instance (t2.xlarge with 4 vCPU's) running 4.4.0-1001-aws reproduces the problem:
$ for i in `seq 10000`; do ./a_p; done | wc -l 124
An AWS instance (t2.xlarge with 4 vCPU's) running 4.4.0-1001-aws reproduces the problem:
$ for i in `seq 10000`; do ./a_p; done | wc -l
124