write pid to ./objs/srs.pid.