Merge lp:~cmiller/desktopcouch/get_port_not_stale into lp:desktopcouch
Proposed by
Chad Miller
Status: | Merged |
---|---|
Approved by: | Tim Cole |
Approved revision: | 51 |
Merged at revision: | not available |
Proposed branch: | lp:~cmiller/desktopcouch/get_port_not_stale |
Merge into: | lp:desktopcouch |
Diff against target: | None lines |
To merge this branch: | bzr merge lp:~cmiller/desktopcouch/get_port_not_stale |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Tim Cole (community) | Approve | ||
Eric Casteleijn (community) | Approve | ||
Stuart Langridge (community) | Abstain | ||
Review via email: mp+10951@code.launchpad.net |
Commit message
Revert the log-file reading code to the reliable (if somewhat oblique,
nonportable, and downright ugly) /proc reading code. Log files can be stale.
Change the startup code to be smarter about discovering and passing around pids
and ports, and more insistent about making sure a program is started before we
resume doing stuff that requires it to be running. This should solve races and
double execution of couchdb.
Change the regex that scans /proc networking stuff so that it doesn't balk at
non-127.0.0.1 addresses.
To post a comment you must log in.
This code certainly works, as far as I can tell. However...I don't like the /proc approach, I like the logfile approach. It's portable and it works everywhere -- doing it the /proc way feels like a hack to me. Why not use the logfile?