2 #include <system_error>
5 // Entry point for Dinit.
7 int dinit_main(int argc, char **argv);
9 int main(int argc, char **argv)
12 return dinit_main(argc, argv);
14 catch (std::bad_alloc &badalloc) {
15 std::cout << "dinit: Out-of-memory during initialisation" << std::endl;
18 catch (std::system_error &syserr) {
19 std::cout << "dinit: unexpected system error during initialisation: " << syserr.what() << std::endl;
23 std::cout << "dinit: unexpected error during initialisation" << std::endl;