summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/fatal.c
diff options
context:
space:
mode:
authorJoris Vink <joris@cvs.openbsd.org>2006-07-07 17:37:18 +0000
committerJoris Vink <joris@cvs.openbsd.org>2006-07-07 17:37:18 +0000
commit3b8d87766176c8c22119cca9b60143e0b8b842d3 (patch)
treea75735ef3dd068f9476605fc1b104c93f293d539 /usr.bin/cvs/fatal.c
parent0bc2e30232a85b2aea92a0a6a147bb29e7f9088e (diff)
first part of opencvs remote, fairly useable on existing trees
although i advise against using it on real development trees for now. only a few commands work right so far: - commit - diff - status - log - update (partially working) if you feel like testing remote and run into bugs feel free to contact me, and please include a full trace (-t).
Diffstat (limited to 'usr.bin/cvs/fatal.c')
-rw-r--r--usr.bin/cvs/fatal.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.bin/cvs/fatal.c b/usr.bin/cvs/fatal.c
index 8bf10f68cf4..159664d4777 100644
--- a/usr.bin/cvs/fatal.c
+++ b/usr.bin/cvs/fatal.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fatal.c,v 1.7 2006/05/27 03:30:30 joris Exp $ */
+/* $OpenBSD: fatal.c,v 1.8 2006/07/07 17:37:17 joris Exp $ */
/*
* Copyright (c) 2002 Markus Friedl. All rights reserved.
*
@@ -27,6 +27,7 @@
#include "cvs.h"
#include "log.h"
+#include "remote.h"
/* Fatal messages. This function never returns. */
@@ -41,5 +42,8 @@ fatal(const char *fmt,...)
cvs_cleanup();
+ if (cvs_server_active)
+ cvs_server_send_response("error");
+
exit(1);
}