Skip to content
Snippets Groups Projects
Commit 547d30ed authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Check for overflow, bad suffixes, and negative values for time

parameters.
parent b4230a16
Branches
Tags
No related merge requests found
......@@ -79,6 +79,8 @@ system "kill -HUP $lyskomd_pid"
client_death 0
lyskomd_death "" signal
##################################################################
lyskomd_start "" "Garb busy postponement: 1 microfortnight
Garb timeout: 1us
Sync timeout: 10 us
......@@ -136,3 +138,26 @@ if {$debug_calls} {
system "kill -HUP $lyskomd_pid"
client_death 0
lyskomd_death "" signal
##################################################################
lyskomd_fail_start {
"Overflow for parameter Garb timeout \\(\[0-9.\]* seconds\\)"
"assigner for Garb timeout failed"
"Overflow for parameter Sync timeout \\(\[0-9.\]* seconds\\)"
"assigner for Sync timeout failed"
"Overflow for parameter Garb interval \\(\[0-9.\]* days\\)"
"assigner for Garb interval failed"
"Overflow for parameter Sync retry interval \\(\[0-9.\]* us\\)"
"assigner for Sync retry interval failed"
"Please fix the above errors in config/lyskomd-config and restart lyskomd"
} "" [exec ./timeval-overflow]
lyskomd_fail_start {
"Bad suffix for parameter Garb interval"
"assigner for Garb interval failed"
"Negative values not supported for parameter Sync timeout"
"assigner for Sync timeout failed"
"Please fix the above errors in config/lyskomd-config and restart lyskomd"
} "" "Garb interval: 4 lifetimes
Sync timeout: -2 us"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment