aboutsummaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2012-08-24 11:24:31 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2012-08-24 11:24:31 +0000
commitd4f48dc3738450f0757050aa90b15df15edaa331 (patch)
tree9c5b3a456e989ec20e2e3849e25043273c4c32f7 /misc
parent1301dfb38d2d1a68563f5ee7f8597e50a8db625d (diff)
downloadports-d4f48dc3738450f0757050aa90b15df15edaa331.tar.gz
ports-d4f48dc3738450f0757050aa90b15df15edaa331.zip
Notes
Diffstat (limited to 'misc')
-rw-r--r--misc/detachtty/files/patch-copy-stream.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/misc/detachtty/files/patch-copy-stream.c b/misc/detachtty/files/patch-copy-stream.c
new file mode 100644
index 000000000000..8b72d933e45e
--- /dev/null
+++ b/misc/detachtty/files/patch-copy-stream.c
@@ -0,0 +1,11 @@
+--- ./copy-stream.c.orig 2003-01-18 15:03:15.000000000 +0100
++++ ./copy-stream.c 2012-08-24 13:22:21.932915476 +0200
+@@ -21,7 +21,7 @@
+
+ int output_buffer(int fd) {
+ int bytes_written=0,bytes_to_write=bytes_in_buf;
+- if(fd<0) return;
++ if(fd<0) return 0;
+ while(bytes_to_write>0) {
+ bytes_written=write(fd,buf,bytes_to_write);
+ if(bytes_written==-1) return -1;