1. 14 Nov, 2017 3 commits
    • Colin Watson's avatar
      Import libpipeline_1.5.0.orig.tar.gz · 75c7a306
      Colin Watson authored
      75c7a306
    • Colin Watson's avatar
      Version: 1.5.0. · 5b448639
      Colin Watson authored
      * lib/Makefile.am (libpipeline_la_LDFLAGS): Bump -version-info to 6:0:5.
      5b448639
    • Colin Watson's avatar
      Add pipecmd_pre_exec function · be7edd06
      Colin Watson authored
      * lib/pipeline-private.h (struct pipecmd): Add pre_exec_func,
      pre_exec_free_func, and pre_exec_data.
      * lib/pipeline.c (pipecmd_new, pipecmd_new_function,
      pipecmd_new_sequencev): Initialise cmd->pre_exec_func,
      cmd->pre_exec_free_func, and cmd->pre_exec_data.
      (pipecmd_dup): Copy cmd->pre_exec_func, cmd->pre_exec_free_func, and
      cmd->pre_exec_data if necessary.
      (pipecmd_pre_exec): New function.
      (pipecmd_exec): If cmd->pre_exec_func is set, call it immediately before
      calling execvp or cmd->func.
      * lib/pipeline.h (pipecmd_pre_exec): Add prototype.
      (pipeline_install_post_fork): Cross-reference pipecmd_pre_exec in
      comment.
      * man/Makefile.am (FUNCTIONS): Add pipecmd_pre_exec.
      * man/libpipeline.3 (Functions to build individual commands): Document
      pipecmd_pre_exec.
      (Functions to run pipelines and handle signals): Cross-reference
      pipecmd_pre_exec from pipeline_install_post_fork.
      * tests/basic.c (test_basic_pre_exec): Test pipecmd_pre_exec.
      * NEWS: Document this.
      * README: Update copyright years.
      be7edd06
  2. 10 Jul, 2017 5 commits
    • Colin Watson's avatar
      tests/read.c: Update program_name · 34fd4ab4
      Colin Watson authored
      34fd4ab4
    • Colin Watson's avatar
      Import libpipeline_1.4.2.orig.tar.gz · a4de227a
      Colin Watson authored
      a4de227a
    • Colin Watson's avatar
      Version: 1.4.2. · 730709d0
      Colin Watson authored
      * lib/Makefile.am (libpipeline_la_LDFLAGS): Bump -version-info to 5:2:4.
      730709d0
    • Colin Watson's avatar
      Fix EOF detection in get_line · 65fd8474
      Colin Watson authored
      * lib/pipeline.c (get_line): A short read isn't a reliable way to detect
      end-of-file.  Instead, keep track of the previous buffer length returned
      by get_block; if we get the same length twice in a row then that
      indicates EOF.
      * tests/reading_long_line.c: Rename to ...
      * tests/read.c: ... this.  Update build system and test names to match.
      (slow_line_helper, test_read_readline_slow): New test.
      65fd8474
    • Colin Watson's avatar
      Various autotools upgrades · 2dd24921
      Colin Watson authored
      Upgrade to Automake 1.15.1, config.guess 2016-10-02, config.sub
      2016-11-04, and Libtool 2.4.6-2 (from Debian).
      2dd24921
  3. 13 Oct, 2016 1 commit
  4. 17 Aug, 2015 3 commits
  5. 16 Aug, 2015 1 commit
    • Colin Watson's avatar
      Fix test failure with Check 0.10.0 · 89f77476
      Colin Watson authored
      Reported by Bruce Dubbs.
      
      * tests/inspect.c (pid_helper): Set SIGTERM back to SIG_DFL, in case
      Check installed its own handler for that.
      * NEWS: Document this.
      89f77476
  6. 06 Aug, 2015 1 commit
  7. 18 Jun, 2015 1 commit
    • Colin Watson's avatar
      Various autotools upgrades · 5c3f7508
      Colin Watson authored
      * aclocal.m4: Upgrade to Gettext 0.19.4.
      * build-aux/ltmain.sh: Upgrade to Libtool 2.4.2-1.11 (from Debian).
      5c3f7508
  8. 26 Oct, 2014 3 commits
  9. 24 Oct, 2014 1 commit
    • Colin Watson's avatar
      Add pipecmd_fchdir function · 753abf72
      Colin Watson authored
      * lib/pipeline-private.h (struct pipecmd): Add cwd_fd.
      * lib/pipeline.c (pipecmd_new, pipecmd_new_function,
      pipecmd_new_sequencev): Initialise cmd->cwd_fd.
      (pipecmd_dup): Copy cmd->cwd_fd if necessary.
      (pipecmd_fchdir): New function.
      (pipecmd_dump, pipecmd_tostring): Serialise cmd->cwd_fd as "(cd <fd
      %d> && ...)" if necessary.
      (pipecmd_exec): If cmd->cwd_fd is set, fchdir to it.
      * lib/pipeline.h (pipecmd_fchdir): Add prototype.
      * man/Makefile.am (FUNCTIONS): Add pipecmd_fchdir.
      * man/libpipeline.3 (Functions to build individual commands):
      Document pipecmd_fchdir.
      * tests/basic.c (test_basic_fchdir): Test pipecmd_fchdir.
      * NEWS: Document this.
      753abf72
  10. 22 Oct, 2014 4 commits
  11. 22 Sep, 2014 3 commits
  12. 17 Sep, 2014 1 commit
  13. 15 Sep, 2014 1 commit
    • Colin Watson's avatar
      Various autotools upgrades · d1571a3c
      Colin Watson authored
      * aclocal.m4: Upgrade to pkg-config 0.28 and Gettext 0.19.2.
      * build-aux/config.sub: Upgrade to 2014-09-11.
      * build-aux/ltmain.sh: Upgrade to Libtool 2.4.2-1.10 (from Debian).
      d1571a3c
  14. 03 Aug, 2014 1 commit
  15. 23 Apr, 2014 1 commit
    • Colin Watson's avatar
      Fix test failures on Cygwin. · 6d04129e
      Colin Watson authored
      Reported by Chris J. Breisch.
      
      * configure.ac: Define SHELL as a C preprocessor symbol.
      * tests/basic.c (test_basic_wait_all, test_basic_setenv,
      test_basic_unsetenv, test_basic_clearenv): Execute SHELL rather than
      "sh".
      * tests/exec.c (test_exec_process): Likewise.
      
      * tests/basic.c (test_basic_args, test_basic_pipeline,
      test_basic_unsetenv, test_basic_clearenv, test_basic_chdir,
      test_basic_sequence): Check for pipeline_readline returning NULL.
      * tests/inspect.c (test_inspect_pid): Likewise.
      * tests/redirect.c (test_redirect_files): Likewise.
      
      * NEWS: Document this.
      6d04129e
  16. 26 Mar, 2014 6 commits
  17. 20 Feb, 2014 1 commit
  18. 18 Feb, 2014 1 commit
  19. 06 Feb, 2014 1 commit
  20. 18 Dec, 2013 1 commit
    • Colin Watson's avatar
      Version: 1.2.6. · 609e59d2
      Colin Watson authored
      * lib/Makefile.am (libpipeline_la_LDFLAGS): Bump -version-info to
        3:6:2.
      609e59d2