diff options
Diffstat (limited to 'lib/Exceptions.cc')
-rw-r--r-- | lib/Exceptions.cc | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/lib/Exceptions.cc b/lib/Exceptions.cc index f8dae62..096ba46 100644 --- a/lib/Exceptions.cc +++ b/lib/Exceptions.cc @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -/* $Id: Exceptions.cc,v 1.39 2005-02-24 11:30:05 pixel Exp $ */ +/* $Id: Exceptions.cc,v 1.40 2006-10-28 16:42:19 pixel Exp $ */ #include <string.h> #include <errno.h> @@ -208,6 +208,16 @@ pid_t xfork() throw (GeneralException) { } #endif +#ifdef HAVE_WAIT +pid_t xwait(int * s) throw (GeneralException) { + return wait(s); +} +#else +pid_t xwait(int *) throw (GeneralException) { + throw GeneralException(_("Function wait() not supported by this system.\n")); +} +#endif + void xexit(int status) throw (GeneralException) { throw Exit(status); } @@ -265,6 +275,10 @@ pid_t Base::fork() { return xfork(); } +pid_t Base::wait(int * s) { + return xwait(s); +} + void Base::exit(int status) { xexit(status); } |