Waiting on pid