neo4j/neo4j — pull request #3402 by tucho (2014-11-05 13:54:59+00:00)
Title: Fix the process number discovering (in detectrunning), broken by the lsof 4.88 version.

Until 4.87 version, the only field that was always selected by lsof -F
option was 'p' (the process number), but in version 4.88 the 'f'
field (file descriptor) became also always selected. That broke the
process number discovering in function detectrunning.

Instead of asking for the 'T' fields (TCP/TPI information) and greping for
"TST=LISTEN" -B1, I asked for the 'p' field and greped for "p". That works
fine for both lsof versions.