Improved behavior of debug cli API command 'fail accept'. It takes now _two_ arguments, Syntax:

fail accept <errno> <repeat count>

Changed fail_next_accept from boolean to decreasing counter.
This commit is contained in:
vraatikka
2013-09-24 15:48:59 +03:00
parent e637ea3844
commit 09cc20b7be
4 changed files with 26 additions and 38 deletions

View File

@ -190,7 +190,7 @@ unsigned char dcb_fake_write_errno[1024];
__int32_t dcb_fake_write_ev[1024];
bool fail_next_backend_fd;
bool fail_next_client_fd;
bool fail_next_accept;
int fail_next_accept;
int fail_accept_errno;
#endif