Changeset 4779:64fbda1f79f8 in roaraudio for libroar/config.c
- Timestamp:
- 03/10/11 19:51:12 (13 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libroar/config.c
r4708 r4779 49 49 memset(&config, 0, sizeof(config)); 50 50 51 #ifdef ROAR_SUPPORT_TRAP 52 config.trap_policy = ROAR_TRAP_IGNORE; 53 #endif 51 54 config.server = NULL; 52 55 config.authfile = NULL; … … 236 239 ROAR_WARN("roar_libroar_config_parse(*): Unknown warning option: %s", v); 237 240 } 241 #ifdef ROAR_SUPPORT_TRAP 242 } else if ( !strcmp(k, "trap-policy") ) { 243 if ( !strcmp(v, "ignore") ) { 244 config->trap_policy = ROAR_TRAP_IGNORE; 245 } else if ( !strcmp(v, "warn") ) { 246 config->trap_policy = ROAR_TRAP_WARN; 247 } else if ( !strcmp(v, "abort") ) { 248 config->trap_policy = ROAR_TRAP_ABORT; 249 #ifdef SIGKILL 250 } else if ( !strcmp(v, "kill") ) { 251 config->trap_policy = ROAR_TRAP_KILL; 252 #endif 253 #ifdef SIGSTOP 254 } else if ( !strcmp(v, "stop") ) { 255 config->trap_policy = ROAR_TRAP_STOP; 256 #endif 257 } else { 258 ROAR_WARN("roar_libroar_config_parse(*): Unknown trap policy: %s", v); 259 } 260 #endif 238 261 } else if ( !strcmp(k, "force-rate") ) { 239 262 config->info.rate = atoi(v);
Note: See TracChangeset
for help on using the changeset viewer.