Commit e6550bec authored by Robert Goldman's avatar Robert Goldman
Browse files

Merge branch 'run-program-messy-with-rebasing' into 'master'

%run-program: Overhaul of asynchronous process spawning

The primary changes made in this branch can be summarised as follows:
 - Employ parameter-error and not-implemented-error
 - Add and use process-info class with a few corresponding getter functions
 - Export functions: process-info-pid, wait-process
 - Add functions: launch-program, close-streams, process-alive-p, terminate-process
 - Unify exit status codes
 - Add tests; unix-specific for now.

See merge request !3
parents efc14379 46eb49bf
Loading
Loading
Loading
Loading

test/exiter.sh

0 → 100755
+15 −0
Original line number Diff line number Diff line
#!/bin/sh

if [ $# -gt 3 ]; then
    exit 1
fi

if [ $# -ge 2 ]; then
    echo $2
fi
if [ $# -ge 3 ]; then
    echo $3 >&2
fi

exit ${1:-0}

test/killer.sh

0 → 100755
+3 −0
Original line number Diff line number Diff line
#!/bin/sh

kill $$
+3 −0
Original line number Diff line number Diff line
#!/bin/sh

sh -c 'kill $$'

test/sleeper.sh

0 → 100755
+8 −0
Original line number Diff line number Diff line
#!/bin/sh

if [ $# -gt 2 ]; then
    exit 1
fi

sleep ${2:-0}
exit ${1:-0}
+1 −1
Original line number Diff line number Diff line
@@ -175,7 +175,7 @@
(defparameter *mod*
  (or
   #+abcl :abcl-contrib
   #+allegro :yacc
   #+allegro :sax
   #+clisp (first (remove "asdf" *dynmod-list* :test 'equal))
   #+(or clozure cmucl) :defsystem
   #+ecl :serve-event ;; loads faster than :ecl-quicklisp
Loading