diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2014-12-03 20:30:25 +0100 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2014-12-03 20:30:25 +0100 |
commit | e7d346892881259a62386d18c14a7cf1ba9a916f (patch) | |
tree | 15966fc2a40c1a3b4fab71d1386713600c7e1b44 /src/biruda.c | |
parent | 5c214383ebb7efb088e184854ddd3a7530086c83 (diff) | |
download | biruda-e7d346892881259a62386d18c14a7cf1ba9a916f.tar.gz biruda-e7d346892881259a62386d18c14a7cf1ba9a916f.tar.bz2 |
handling worker state and mode
Diffstat (limited to 'src/biruda.c')
-rw-r--r-- | src/biruda.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/biruda.c b/src/biruda.c index ec48b26..b900fcc 100644 --- a/src/biruda.c +++ b/src/biruda.c @@ -65,7 +65,9 @@ static int test_config( const struct gengetopt_args_info *args_info ) static int conf_validate_worker_execution( cfg_t *cfg, cfg_opt_t *opt, const char *value, void *result ) { - if( strcmp( value, "direct" ) == 0 ) { + if( strcmp( value, "disabled" ) == 0 ) { + *(worker_execution_mode_t *)result = WORKER_EXECUTION_DISABLED; + } else if( strcmp( value, "direct" ) == 0 ) { *(worker_execution_mode_t *)result = WORKER_EXECUTION_DIRECT; } else { cfg_error( cfg, "invalid value for worker execution mode option '%s': %s", |