Generalize process spawning so its test compiles (but fails) in Windows
commit35c89be02b535e2951b695429bd9b255afb2a7b2
authorSteven Murdoch <Steven.Murdoch@cl.cam.ac.uk>
Thu, 21 Jul 2011 15:34:48 +0000 (21 16:34 +0100)
committerSteven Murdoch <Steven.Murdoch@cl.cam.ac.uk>
Thu, 21 Jul 2011 15:34:48 +0000 (21 16:34 +0100)
tree292e9a1ce5d885d4144c90a457e82412676da18e
parent2002d4acdfac823c03cca3ed92de7f60b3272d86
Generalize process spawning so its test compiles (but fails) in Windows

- pid, stdout/stderr_pipe now encapsulated in process_handle
- read_all replaced by tor_read_all_from_process_stdin/stderr
- waitpid replaced by tor_get_exit_code

Untested on *nix
src/common/util.c
src/common/util.h
src/test/test_util.c