exec-path-list is a thread-fluid now.
This commit is contained in:
parent
37948e173d
commit
0b35dbbe2f
|
@ -5,7 +5,8 @@
|
||||||
(export open/sync))
|
(export open/sync))
|
||||||
|
|
||||||
(define-interface hpux-errno-extras-interface
|
(define-interface hpux-errno-extras-interface
|
||||||
(export errno/wouldblock))
|
(export errno/wouldblock
|
||||||
|
errno/connaborted))
|
||||||
|
|
||||||
(define-interface hpux-signals-extras-interface
|
(define-interface hpux-signals-extras-interface
|
||||||
(export))
|
(export))
|
||||||
|
|
|
@ -186,7 +186,7 @@
|
||||||
|
|
||||||
string-lib
|
string-lib
|
||||||
|
|
||||||
fluids ; For exec-path-list
|
thread-fluids ; For exec-path-list
|
||||||
loopholes ; For my bogus CALL-TERMINALLY implementation.
|
loopholes ; For my bogus CALL-TERMINALLY implementation.
|
||||||
|
|
||||||
scheme
|
scheme
|
||||||
|
|
|
@ -900,7 +900,7 @@
|
||||||
(for-each (lambda (dir)
|
(for-each (lambda (dir)
|
||||||
(let ((binary (string-append dir "/" prog)))
|
(let ((binary (string-append dir "/" prog)))
|
||||||
(%%exec binary argv env)))
|
(%%exec binary argv env)))
|
||||||
(fluid exec-path-list)))))
|
(thread-fluid exec-path-list)))))
|
||||||
|
|
||||||
(error "No executable found." prog arglist))))))))
|
(error "No executable found." prog arglist))))))))
|
||||||
|
|
||||||
|
@ -1006,7 +1006,7 @@
|
||||||
|
|
||||||
;;; Some globals:
|
;;; Some globals:
|
||||||
(define home-directory "")
|
(define home-directory "")
|
||||||
(define exec-path-list (make-fluid '()))
|
(define exec-path-list)
|
||||||
|
|
||||||
(define (init-scsh-vars quietly?)
|
(define (init-scsh-vars quietly?)
|
||||||
(set! home-directory
|
(set! home-directory
|
||||||
|
@ -1024,11 +1024,12 @@
|
||||||
(lambda ()
|
(lambda ()
|
||||||
(user-info:home-dir (user-info (user-uid))))))))))
|
(user-info:home-dir (user-info (user-uid))))))))))
|
||||||
|
|
||||||
(set-fluid! exec-path-list
|
(set! exec-path-list
|
||||||
(cond ((getenv "PATH") => split-colon-list)
|
(make-preserved-thread-fluid
|
||||||
(else (if (not quietly?)
|
(cond ((getenv "PATH") => split-colon-list)
|
||||||
(warn "Starting up with no path ($PATH)."))
|
(else (if (not quietly?)
|
||||||
'()))))
|
(warn "Starting up with no path ($PATH)."))
|
||||||
|
'())))))
|
||||||
|
|
||||||
|
|
||||||
; SIGTSTP blows s48 away. ???
|
; SIGTSTP blows s48 away. ???
|
||||||
|
|
Loading…
Reference in New Issue