mirror of https://github.com/jimsalterjrs/sanoid
Fix #91: do not use exit codes > 255
Exit codes > 256 are treated by bash as `exit_code % 256`, which is confusing. Furthermore, using code 256 is particularly problematic, as 256%256=0, which means success, and is not was was intended here. For further information about special exit codes, see http://tldp.org/LDP/abs/html/exitcodes.html.
This commit is contained in:
parent
1966d7f11b
commit
47ff88db9d
2
syncoid
2
syncoid
|
|
@ -764,7 +764,7 @@ sub getmatchingsnapshot {
|
||||||
print " replication must be to a NON EXISTENT DATASET, which will\n";
|
print " replication must be to a NON EXISTENT DATASET, which will\n";
|
||||||
print " then be CREATED BY the initial replication process.\n\n";
|
print " then be CREATED BY the initial replication process.\n\n";
|
||||||
}
|
}
|
||||||
exit 256;
|
exit 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
sub newsyncsnap {
|
sub newsyncsnap {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue