Skip to content
Snippets Groups Projects
Commit b8841170 authored by Raymond Toy's avatar Raymond Toy
Browse files

Fix #49: CLM crashes

When invoking motifd, the program name is #p:'library:motifd".  This
is passed directly to spawn (a C routine), which only accepts strings.
So, before calling spawn, convert the program path to a unix
namestring.

This allows the example from the bug to run without crashing.
parent b464fc94
No related branches found
No related tags found
No related merge requests found
...@@ -567,7 +567,8 @@ ...@@ -567,7 +567,8 @@
env)) env))
(let ((child-pid (let ((child-pid
(without-gcing (without-gcing
(spawn program argv envp pty-name (spawn (unix::unix-namestring program)
argv envp pty-name
stdin stdout stderr)))) stdin stdout stderr))))
(when (< child-pid 0) (when (< child-pid 0)
(error (intl:gettext "Could not fork child process: ~A") (error (intl:gettext "Could not fork child process: ~A")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment