Commit Diff


commit - 4ad015757c2e7305e2de865c3fba0cf97649d0e6
commit + a0e9117382da09d29f8f0f08ca98188b810bfa94
blob - 16e00e469ee539ba94e81a84e3d08ae7f11b951b
blob + 7fcf2564c2dc5997aee9db39299ebe81661f2d0c
--- ChangeLog
+++ ChangeLog
@@ -1,3 +1,10 @@
+2021-06-13  Omar Polo  <op@omarpolo.com>
+
+	* telescope.c (main): ignore SIGPIPE: prevent telescope from dying
+	when connecting to non-tls/non-gemini servers (found by trying to
+	load a bogus ``gemini://gemini.nytpu.com'' -- the correct url for
+	the capsule is ``gemini://nytpu.com'')
+
 2021-06-12  Omar Polo  <op@omarpolo.com>
 
 	* configure.ac: tagged 0.2
blob - 4e057fd9e456cc7de1de2005569e69f749eaf0ff
blob + a18a392efaceabe18fa5d414c9d28b25a932ddd3
--- telescope.c
+++ telescope.c
@@ -610,6 +610,7 @@ main(int argc, char * const *argv)
 	int		net_fds[2], fs_fds[2];
 
 	signal(SIGCHLD, SIG_IGN);
+	signal(SIGPIPE, SIG_IGN);
 
 	/* initialize part of the fs layer.  Before starting the UI
 	 * and dropping the priviledges we need to read some stuff. */