From 775011d8a082368e3a41808c1c03115b6b78921e Mon Sep 17 00:00:00 2001 From: Pixel Date: Thu, 29 Nov 2001 00:02:20 +0000 Subject: More small changes... --- include/Exceptions.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include') diff --git a/include/Exceptions.h b/include/Exceptions.h index 71e2bac..9c87714 100644 --- a/include/Exceptions.h +++ b/include/Exceptions.h @@ -39,6 +39,7 @@ void * xmalloc(size_t) throw (GeneralException); void xfree(void *&); void * xrealloc(void *, size_t); int xpipe(int *, int = 0) throw (GeneralException); +pid_t xfork() throw (GeneralException); // On prédéfinit la classe String, pour éviter // les deadlocks de compilation... @@ -76,6 +77,9 @@ class Base { static int pipe(int * p, int flag = 0) { return xpipe(p, flag); } + static pid_t fork() { + return xfork(); + } }; class GeneralException : public Base { -- cgit v1.2.3