Fix -P usage, broken by recent reworking of socket generation.