Utils: Removed ErrnoException and implemented generic Exception base-class
[senf.git] / Utils / Daemon / Daemon.test.cc
index 1a5990b..e456939 100644 (file)
@@ -80,12 +80,12 @@ namespace {
     int run(int argc, char const ** argv)
     {
         int pid (::fork());
-        if (pid < 0) senf::throwErrno("::fork()");
+        if (pid < 0) throw senf::SystemException("::fork()");
         if (pid == 0) {
             ::_exit(myMain(argc, argv));
         }
         int status;
-        if (::waitpid(pid, &status, 0) < 0) senf::throwErrno("::waitpid()");
+        if (::waitpid(pid, &status, 0) < 0) throw senf::SystemException("::waitpid()");
         return WIFEXITED(status) ? WEXITSTATUS(status) : -1;
     }