Catch output and exit status of registration helpers
Registration helpers (currently only flashproxy-reg-http.py
can print to stdout or stderr and the output goes to the stream; rather flashproxy-client.py
should take that output and log it in the normal fashion.
Similarly, we should check for a nonzero exit status and log a failure to register. I think this can be done as easily as installing a SIGCHLD
handler, but SIGCHLD
is not supported on Windows according to http://docs.python.org/library/signal#signal.signal.