merged proxy test change from RC_0_16

This commit is contained in:
Arvid Norberg 2012-10-11 02:20:16 +00:00
parent b3ad105145
commit 8f0d039b3c
1 changed files with 6 additions and 1 deletions

View File

@ -201,7 +201,12 @@ int start_proxy(int proxy_type)
, port, type, auth);
fprintf(stderr, "starting delegated proxy on port %d (%s %s)...\n", port, type, auth);
system(buf);
int r = system(buf);
if (r != 0)
{
fprintf(stderr, "failed (%d) %s\n", errno, strerror(errno));
exit(1);
}
fprintf(stderr, "launched\n");
// apparently delegate takes a while to open its listen port
test_sleep(500);