Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
cmucl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Carl Shapiro
cmucl
Commits
c2e6a563
Commit
c2e6a563
authored
15 years ago
by
rtoy
Browse files
Options
Downloads
Patches
Plain Diff
Protocol needs to be set for open-x-stream as well as
get-best-authorization. (From Fred.)
parent
41712fcb
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
clx/display.lisp
+33
-33
33 additions, 33 deletions
clx/display.lisp
with
33 additions
and
33 deletions
clx/display.lisp
+
33
−
33
View file @
c2e6a563
...
...
@@ -19,7 +19,7 @@
;;;
#+
cmu
(
ext:file-comment
"$Id: display.lisp,v 1.1
4
2009/0
6
/1
7
1
8:22:46
rtoy
Exp
$"
)
(
ext:file-comment
"$Id: display.lisp,v 1.1
5
2009/0
7
/1
3
1
3:54:35
rtoy
Rel
$"
)
(
in-package
:xlib
)
...
...
@@ -388,38 +388,38 @@ gethostname(3) - is used instead."
;; if any, is assumed to come from the environment somehow.
(
declare
(
type
integer
display
))
(
declare
(
clx-values
display
))
;; Get the authorization mechanism from the environment. Handle the
;; special case of a host name of "" and "unix" which means the
;; protocol is
:local
(
when
(
null
authorization-name
)
(
multiple-value-setq
(
authorization-name
authorization-data
)
(
get-best-authorization
host
display
(
if
(
member
host
'
(
""
"unix"
)
:test
#'
equal
)
:local
protocol
)))
)
;; PROTOCOL is the network protocol (something like :TCP :DNA or :CHAOS). See OPEN-X-STREAM.
(
let*
((
stream
(
open-x-stream
host
display
protocol
))
(
disp
(
make-buffer
*output-buffer-size*
#'
make-display-internal
:host
host
:display
display
:output-stream
stream
:input-stream
stream
))
(
ok-p
nil
))
(
unwind-protect
(
progn
(
display-connect
disp
:authorization-name
authorization-name
:authorization-data
authorization-data
)
(
setf
(
display-authorization-name
disp
)
authorization-name
)
(
setf
(
display-authorization-data
disp
)
authorization-data
)
(
initialize-resource-allocator
disp
)
(
initialize-predefined-atoms
disp
)
(
initialize-extensions
disp
)
(
when
(
assoc
"BIG-REQUESTS"
(
display-extension-alist
disp
)
:test
#'
string=
)
(
enable-big-requests
disp
))
(
setq
ok-p
t
))
(
unless
ok-p
(
close-display
disp
:abort
t
)))
disp
))
(
let
((
protocol
(
if
(
member
host
'
(
""
"unix"
)
:test
#'
equal
)
:local
protocol
))
)
;; Get the authorization mechanism from the environment. Handle the
;; special case of a host name of "" and "unix" which means the
;; protocol is :local
(
when
(
null
authorization-name
)
(
multiple-value-setq
(
authorization-name
authorization-data
)
(
get-best-authorization
host
display
protocol
)))
;; PROTOCOL is the network protocol (something like :TCP :DNA or :CHAOS). See OPEN-X-STREAM.
(
let*
((
stream
(
open-x-stream
host
display
protocol
))
(
disp
(
make-buffer
*output-buffer-size*
#'
make-display-internal
:host
host
:display
display
:output-stream
stream
:input-stream
stream
))
(
ok-p
nil
))
(
unwind-protect
(
progn
(
display-connect
disp
:authorization-name
authorization-name
:authorization-data
authorization-data
)
(
setf
(
display-authorization-name
disp
)
authorization-name
)
(
setf
(
display-authorization-data
disp
)
authorization-data
)
(
initialize-resource-allocator
disp
)
(
initialize-predefined-atoms
disp
)
(
initialize-extensions
disp
)
(
when
(
assoc
"BIG-REQUESTS"
(
display-extension-alist
disp
)
:test
#'
string=
)
(
enable-big-requests
disp
))
(
setq
ok-p
t
))
(
unless
ok-p
(
close-display
disp
:abort
t
)))
disp
))
)
(
defun
display-force-output
(
display
)
; Output is normally buffered, this forces any buffered output to the server.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment