c9 / install

Cloud9 SSH installer
179 stars 151 forks source link

Add lsof (used by the gdbdebugger plugin) as a dependency #57

Closed saaadhu closed 8 years ago

saaadhu commented 8 years ago

The gdbdebugger plugin implementation uses lsof and greps for gdbserver to see if it has started, and keeps looping until it does.

On a standard arch linux box, lsof is not installed by default, and this causes the plugin to assume gdbserver hasn't spun up - it ends up looping endlessly. Takes some time and debugging effort to figure out the actual problem.

nightwing commented 8 years ago

@saaadhu is there an alternative to lsof that is installed on arch linux by default?

saaadhu commented 8 years ago

None that I know of. There's always the option to read from /proc (http://stackoverflow.com/questions/1980355/linux-api-to-determine-sockets-owned-by-a-process), but I guess that's overkill

nightwing commented 8 years ago

sorry for not replying earlier, the plan was to remove lsof dependency, but doing that took longer than expected https://github.com/c9/c9.ide.run.debug/pull/40#event-754313516