Re: Package EXTERNAL-PROGRAM: SYS:PID-EXIT-STATUS no more available in
Lispworks 7
Here is an example that has both lispworks6 and lispworks7 versions side by side: https://github.com/ExaScience/elprep/blob/master/io-utils.lisp
Look for “(defstruct process”, “(defun run-program”, and “(defun process-close”.
Pascal
On Aug 28, 2015, at 08:50, Raymond Wiker <rwiker@gmail.com<mailto:rwiker@gmail.com>> wrote:
I discovered the same thing some time back, and contacted Lispworks support about it. The response I got was
: Thanks for the report -- the change is documented in the Release Notes 15.20.6
: (http://www.lispworks.com/documentation/lw70/RNIG/html/readme-151.htm#marker-972462)
: but was missing from the index so is not easy to find.
: LispWorks 7.0 has sys:pipe-exit-status for pipes.
: We don't support working with PIDs inside Lisp because the SIGCHLD handler
: automatically reaps the exit status and hence the PID will no longer be
: unique.
It should be relatively easy to make the necessary changes to code that uses sys:pid-exit-status.
On Fri, Aug 28, 2015 at 12:46 AM, "Frank Gönninger, Gönninger B&T" <frank.goenninger@goenninger.net<mailto:frank.goenninger@goenninger.net>> wrote:
Dear LW Gurus!
While loading package EXTERNAL-PROGRAM (see https://github.com/sellout/external-program) - I used Quicklisp to load this package,
I get the following error:
**++++ Error between functions:
Symbol "PID-EXIT-STATUS" not found at all in the SYSTEM package.
; (METHOD EXTERNAL-PROGRAM:PROCESS-P (EXTERNAL-PROGRAM::EXTERNAL-PROCESS))
The relevant code section is:
(defmethod process-status ((process external-process))
(let ((status-code (sys:pid-exit-status (external-process-process-id
process))))
(values (if status-code :exited :running) status-code)))
I would like to make this available on LW7 - but so far could not find a more or less drop-in replacement for this call. I am sure I am missing something … Any help / hint / advice really appreciated. Thanks for your help.
Kind regards
Frank
--
Pascal Costanza, ExaScience Lab Belgium, Intel Health & Life Sciences
pascal.costanza@intel.com<mailto:pascal.costanza@intel.com>
Intel Corporation NV/SA
Kings Square, Veldkant 31
2550 Kontich
RPM (Bruxelles) 0415.497.718.
Citibank, Brussels, account 570/1031255/09
This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.
_______________________________________________
Lisp Hug - the mailing list for LispWorks users
lisp-hug@lispworks.com
http://www.lispworks.com/support/lisp-hug.html