nodejitsu/haibu-carapace — Issue #16: detecting ports the easy way
Author: dominictarr
Created: 2011-10-29 01:54:30+00:00
State: open

figured out a waaaay simpler method to discover the port an app has started on

`` bash
lsof -a -p $PID -i TCP

COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
node 19423 dominic 5u IPv4 244275 0t0 TCP *:8000 (LISTEN)
```

no need for complicated monkey patching or IPC.