summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2015-05-09 15:41:47 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2015-05-09 15:41:47 +0000
commitb42e1a56a48282be171cc5c094a8b0a3b55da453 (patch)
treeeabe179525d6e6742582101b45a7a18f625afd86
parent1ecd905f5bfaa3299efe9a78e068f9784b246124 (diff)
downloadexecline-b42e1a56a48282be171cc5c094a8b0a3b55da453.tar.xz
- Fix pipeline when stdin or stdout is closed
- rc for 2.1.2.1
-rw-r--r--doc/index.html2
-rw-r--r--doc/upgrade.html6
-rw-r--r--package/info2
-rw-r--r--src/execline/pipeline.c1
4 files changed, 9 insertions, 2 deletions
diff --git a/doc/index.html b/doc/index.html
index c21265d..1fdb782 100644
--- a/doc/index.html
+++ b/doc/index.html
@@ -67,7 +67,7 @@ library. </li>
<h3> Download </h3>
<ul>
- <li> The current released version of execline is <a href="execline-2.1.2.0.tar.gz">2.1.2.0</a>. </li>
+ <li> The current released version of execline is <a href="execline-2.1.2.1.tar.gz">2.1.2.1</a>. </li>
<li> Alternatively, you can checkout a copy of the execline git repository:
<pre> git clone git://git.skarnet.org/execline </pre> </li>
</ul>
diff --git a/doc/upgrade.html b/doc/upgrade.html
index 2bda002..28bf1bc 100644
--- a/doc/upgrade.html
+++ b/doc/upgrade.html
@@ -18,6 +18,12 @@
<h1> What has changed in execline </h1>
+<h2> in 2.1.2.1 </h2>
+
+<ul>
+ <li> Bugfix release, no changes </li>
+</ul>
+
<h2> in 2.1.2.0 </h2>
<ul>
diff --git a/package/info b/package/info
index 81cd31b..83b228b 100644
--- a/package/info
+++ b/package/info
@@ -1,4 +1,4 @@
package=execline
-version=2.1.2.0
+version=2.1.2.1
category=admin
package_macro_name=EXECLINE
diff --git a/src/execline/pipeline.c b/src/execline/pipeline.c
index 42a230b..ca5ef0f 100644
--- a/src/execline/pipeline.c
+++ b/src/execline/pipeline.c
@@ -66,6 +66,7 @@ int main (int argc, char const **argv, char const *const *envp)
if (!pid) strerr_diefu2sys(111, "spawn ", argv[0]) ;
}
if (fd_move(w, fd) < 0) strerr_diefu1sys(111, "fd_move") ;
+ if (w == fd) uncoe(fd) ;
{
#ifdef EXECLINE_OLD_VARNAMES
char fmt[UINT64_FMT * 2 + 10] = "!=" ;