exec-path-list is a thread-fluid now.

This commit is contained in:
mainzelm 2002-05-07 08:58:53 +00:00
parent 37948e173d
commit 0b35dbbe2f
3 changed files with 11 additions and 9 deletions

View File

@ -5,7 +5,8 @@
(export open/sync))
(define-interface hpux-errno-extras-interface
(export errno/wouldblock))
(export errno/wouldblock
errno/connaborted))
(define-interface hpux-signals-extras-interface
(export))

View File

@ -186,7 +186,7 @@
string-lib
fluids ; For exec-path-list
thread-fluids ; For exec-path-list
loopholes ; For my bogus CALL-TERMINALLY implementation.
scheme

View File

@ -900,7 +900,7 @@
(for-each (lambda (dir)
(let ((binary (string-append dir "/" prog)))
(%%exec binary argv env)))
(fluid exec-path-list)))))
(thread-fluid exec-path-list)))))
(error "No executable found." prog arglist))))))))
@ -1006,7 +1006,7 @@
;;; Some globals:
(define home-directory "")
(define exec-path-list (make-fluid '()))
(define exec-path-list)
(define (init-scsh-vars quietly?)
(set! home-directory
@ -1024,11 +1024,12 @@
(lambda ()
(user-info:home-dir (user-info (user-uid))))))))))
(set-fluid! exec-path-list
(cond ((getenv "PATH") => split-colon-list)
(else (if (not quietly?)
(warn "Starting up with no path ($PATH)."))
'()))))
(set! exec-path-list
(make-preserved-thread-fluid
(cond ((getenv "PATH") => split-colon-list)
(else (if (not quietly?)
(warn "Starting up with no path ($PATH)."))
'())))))
; SIGTSTP blows s48 away. ???