/*
- * Copyright (C) 1996-2015 The Squid Software Foundation and contributors
+ * Copyright (C) 1996-2020 The Squid Software Foundation and contributors
*
* Squid software is distributed under GPLv2+ license and includes
* contributions from numerous individuals and organizations.
death(int sig)
{
std::cout << "Fatal: Signal " << sig;
- exit(1);
+ exit(EXIT_FAILURE);
}
void
fatal(const char *message)
{
fprintf(stderr, "FATAL: %s\n", message);
- exit(1);
+ exit(EXIT_FAILURE);
}
/* end stub functions */
for_each(*metadata, dumper);
- return 0;
- } catch (std::runtime_error error) {
- std::cout << "Failed : " << error.what() << std::endl;
+ } catch (const std::exception &e) {
+ std::cout << "Failed : " << e.what() << std::endl;
if (fd >= 0)
close(fd);
if (metadata)
StoreMeta::FreeList(&metadata);
- return 1;
+ return EXIT_FAILURE;
}
+
+ return EXIT_SUCCESS;
}