diff options
author | Pixel <Pixel> | 2001-11-29 00:02:20 +0000 |
---|---|---|
committer | Pixel <Pixel> | 2001-11-29 00:02:20 +0000 |
commit | 775011d8a082368e3a41808c1c03115b6b78921e (patch) | |
tree | 32294d4d3450177bdf27dcddcad8d2d603e106d3 /lib/Exceptions.cc | |
parent | 0a7f6d0b5935f9794dda8935d37d4238bed3d611 (diff) |
More small changes...
Diffstat (limited to 'lib/Exceptions.cc')
-rw-r--r-- | lib/Exceptions.cc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/Exceptions.cc b/lib/Exceptions.cc index 10b82a5..6d24646 100644 --- a/lib/Exceptions.cc +++ b/lib/Exceptions.cc @@ -125,3 +125,15 @@ int xpipe(int * p, int flag) throw (GeneralException) { return p[flag]; } + +pid_t xfork() throw (GeneralException) { + pid_t p; + + p = fork(); + + if (p == -1) { + throw GeneralException("Was not able to fork().\n"); + } + + return p; +} |