From 31f0037fd570d46474fd871e4f611c31e95ddded Mon Sep 17 00:00:00 2001
From: Timothy Stack <stack@flux.utah.edu>
Date: Wed, 6 Apr 2005 06:26:27 +0000
Subject: [PATCH] Die when the garcia-pilot connection goes away

---
 robots/rmcd/pilotConnection.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/robots/rmcd/pilotConnection.c b/robots/rmcd/pilotConnection.c
index 739a45740d..bb3fc57309 100644
--- a/robots/rmcd/pilotConnection.c
+++ b/robots/rmcd/pilotConnection.c
@@ -1269,6 +1269,7 @@ void pc_handle_signal(fd_set *rready, fd_set *wready)
 		struct mtp_packet mp;
 
 		if (mtp_receive_packet(mh, &mp) != MTP_PP_SUCCESS) {
+		  fatal("lost pilot connection");
 		    pc->pc_flags &= ~PCF_CONNECTED;
 		    pc->pc_flags |= PCF_CONNECTING;
 		}
-- 
GitLab