fix warning

- unused variable
- pid is uninitialized