public void link(OtpErlangPid from, OtpErlangPid to) { lock (this) { try { base.sendLink(from, to); links.addLink(from, to); } catch (IOException) { throw new OtpErlangExit("noproc", to); } } }