diff options
Diffstat (limited to 'include/Exceptions.h')
-rw-r--r-- | include/Exceptions.h | 4 |
1 files changed, 4 insertions, 0 deletions
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 { |