removed -p for BSD support. Fixed termination problem.
Merge pull request #16 from ManjunathChet/master

removed -p for BSD support. Fixed termination problem.