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
Loading
Loading
Loading
Loading
+2 −1
Changes for src/code/run-program.lisp: 2 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -567,7 +567,8 @@
					env))
			(let ((child-pid
			       (without-gcing
				(spawn program argv envp pty-name
				(spawn (unix::unix-namestring program)
				       argv envp pty-name
				       stdin stdout stderr))))
			  (when (< child-pid 0)
			    (error (intl:gettext "Could not fork child process: ~A")