11 Commits

Author SHA1 Message Date
Frank Schroeder
eddb1af603 Remove duplicate constants
This patch removes duplicate internal copies of constants in the structs
package which are also defined in the api package. The api.KVOp type
with all its values for the TXN endpoint and the api.HealthXXX constants
are now used throughout the codebase.

This resulted in some circular dependencies in the testutil package
which have been resolved by copying code and constants and moving the
WaitForLeader function into a separate testrpc package.
2017-04-20 09:54:49 -07:00
Adam Wolfe Gordon
5ac5a8ccfc agent: Stop reaping child processes (resolves #1988)
The consul docker image now uses dumb-init to reap child processes, so
there's no need to reap them ourselves.
2016-10-04 09:36:41 -06:00
James Phillips
343838f12b Adds support for the reap lock. 2016-01-12 21:10:25 -08:00
Dale Wijnand
5a28ebcaa3 Fix a bunch of typos. 2015-09-15 13:22:08 +01:00
Ryan Uber
544299efa5 agent: pass locally configured token during remote exec 2015-01-29 10:42:46 -08:00
Soren Hansen
264d619457 Pass exitCode by reference
Arguments to defer statements are evaluated when the defer statement is
evaluated, so pass exitCode by reference instead.

Fixes issue #346
2014-09-17 21:17:51 +02:00
Armon Dadgar
3286074758 agent: Handle cancel for idle wait 2014-09-01 14:46:22 -07:00
Armon Dadgar
9b74b86709 agent: Testing remote exec 2014-09-01 14:46:22 -07:00
Armon Dadgar
9ba4f31fde agent: Refactor remote exec write code 2014-09-01 14:46:22 -07:00
Armon Dadgar
a0c6dbfe2a agent: testing remote exec writer 2014-09-01 14:46:21 -07:00
Armon Dadgar
53777527e0 agent: First pass at remote exec support 2014-09-01 14:46:21 -07:00