Package: oggfwd / 0.2-6

002_oggfwd-exit-status.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Author: hhaamu@gmail.com
Description: Set exit status to 1 on connection error
Forwarded: yes
Bug-Debian: http://bugs.debian.org/515333
Last-Update: 2009-12-17
Index: oggfwd-0.2/oggfwd.c
===================================================================
--- oggfwd-0.2.orig/oggfwd.c	2006-08-01 20:14:22.000000000 +0800
+++ oggfwd-0.2/oggfwd.c	2009-12-17 21:32:01.000000000 +0800
@@ -229,9 +229,11 @@
 
 			shout_sync(shout);
 		}
-	} else
+	} else {
 		fprintf(stderr, "%s: Error connecting: %s\n", __progname,
 		       shout_get_error(shout));
+		return 1;
+	}
 
 	shout_close(shout);