Skip to content
Snippets Groups Projects
  1. Sep 30, 2017
    • Raymond Toy's avatar
      Fix #45: Handle relative paths in `run-program` · 12018284
      Raymond Toy authored
      This is basically the solution proposed by Elias Pipping with a few
      minor tweaks.
      
          - In `run-program`, don't merge `program` with the "path:"
            search-list.  `spawn` will handle this.
          - In `spawn`, if the first call to execve fails, instead of trying
            "/bin/sh", use "/usr/bin/env" which will use the user's PATH if
            necessary to find the program.
      12018284
  2. Sep 16, 2017
    • Raymond Toy's avatar
      Clean up prog_status · 81e08ecb
      Raymond Toy authored
       - If `waidpid` returns 0 or -1, we should return.
       - Make the fprintf message a bit clearer on what's happening when we
         have some kind of status that we didn't handle.
      81e08ecb
    • Raymond Toy's avatar
      Fix up minor issues in implementation · 65ce358d
      Raymond Toy authored
       - process-alive-p should return T for continued processes
       - Simplify prog-status slightly by making the status code array start
         :signaled instead of nil.
       - Update prog_status with enum to specify the codes to make it
         clearer what they mean and to make it clearer that it matches the
         expectations in prog-status.
      65ce358d
  3. Sep 09, 2017
    • Raymond Toy's avatar
      Fix #41: Report proper process status · f05cb10a
      Raymond Toy authored
      The main problem is that we weren't calling wait3 with WCONTINUED so
      that we would be signaled when the process continues.  And we also
      need to check that result of wait call was WCONTINUED>
      
      Replace the wait3 routine with a C routine (prog_status) so we don't
      have to deal with the OS-specific flags.  This function basically
      returns what the lisp function wait3 did.
      
      Use this function in GET-PROCESSES-STATUS-CHANGES.
      
       - runprog.c:
         - Add prog_status
       - run-program.lisp:
         - Use prog_status instead of wait3
       - issues.lisp:
         - Add basic test
      f05cb10a
  4. Sep 01, 2012
    • Raymond Toy's avatar
      Clean up RCS ids · eeab7066
      Raymond Toy authored
       * Get rid of the RCS Header stuff.  They're meaningless in git.
       * Add public domain comment to some of the files if the only comment
         was the RCS header.
      eeab7066
  5. Nov 04, 2011
  6. Sep 15, 2005
  7. Sep 07, 2005
    • cshapiro's avatar
      General cleanup of spawn() · 0d9fb588
      cshapiro authored
        * Set the process group leader using setsid() on all ports.
      
        * Call sigprocmask() unmasking any signals masked by Lisp.
      
        * Make spawn() officially return a pid_t instead of an int.
      
        * Make a few minor whitespace and formatting corrections while we're
          at it.
      
        * Fix the includes list to eliminate compiler warnings and reflect
          reality.
      0d9fb588
  8. Jul 08, 2004
  9. Jul 07, 2004
    • rtoy's avatar
      Fix more compiler warnings: · 0ac2c885
      rtoy authored
      * backtrace.c, save.c:  fprintf warnings.
      * interrupt.h: Declare build_fake_control_stack_frame and
        interrupt_handle_space_overflow.
      * os-common.c: Include interrupt.h to define
        build_fake_control_stack_frame.
      * parse.c, runprog.c, search.c:  Include some standard system headers
        to get rid of undefined function warnings.
      0ac2c885
  10. Oct 27, 2000
  11. Oct 25, 1994
  12. Oct 24, 1994
  13. Aug 04, 1993
Loading