summaryrefslogtreecommitdiff
path: root/lib/Exceptions.cc
diff options
context:
space:
mode:
authorPixel <Pixel>2001-11-29 00:02:20 +0000
committerPixel <Pixel>2001-11-29 00:02:20 +0000
commit775011d8a082368e3a41808c1c03115b6b78921e (patch)
tree32294d4d3450177bdf27dcddcad8d2d603e106d3 /lib/Exceptions.cc
parent0a7f6d0b5935f9794dda8935d37d4238bed3d611 (diff)
More small changes...
Diffstat (limited to 'lib/Exceptions.cc')
-rw-r--r--lib/Exceptions.cc12
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;
+}