In fact, pgrp = 0, still "failed to set up serial port".