X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fcore%2Funix%2Fprocess.cpp;h=975fa223520486fd59122ae90e17e322fd4e755a;hp=7370b70803f94bff6c24c57a3adb453f5ea6682a;hb=1787d4928ac1285f5434a2c8d0676deea9ce9176;hpb=3bfc22d12b893d94cbb4697a77b7cababcbbd921 diff --git a/source/core/unix/process.cpp b/source/core/unix/process.cpp index 7370b70..975fa22 100644 --- a/source/core/unix/process.cpp +++ b/source/core/unix/process.cpp @@ -4,6 +4,7 @@ #include #include #include +#include "except.h" #include "process.h" #include "process_private.h" @@ -70,7 +71,7 @@ void Process::execute(const string &command, bool path_search, const Arguments & bool Process::wait(bool block) { if(!running) - throw logic_error("not running"); + throw invalid_state("not running"); int status; int pid = waitpid(priv->info.pid, &status, (block ? 0 : WNOHANG));