don't rely on /proc for 'browse' mode
authorEvan Martin <martine@danga.com>
Sat, 5 Mar 2011 23:32:03 +0000 (15:32 -0800)
committerEvan Martin <martine@danga.com>
Sat, 5 Mar 2011 23:32:03 +0000 (15:32 -0800)
commitdcf96a4d9c07d5c49d050ebd055c9e2db6836fc1
treef2fac40c4353d47e020efc14f6f09e5524433294
parent80fda9821765d2139a080a527ab66fcb9e272722
don't rely on /proc for 'browse' mode

Instead, pass the script code via stdin.
We end up with a zombie (the child process that passes the script code)
because we can't ignore SIGCHLD in the parent (the Python code relies on
being able to wait for children), but the zombie dies with the outer
process.  This probably could be avoided by double-forking or other
approaches, but it doesn't seem worth the effort.
src/browse.cc