Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gendl
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
47
Issues
47
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gendl
gendl
Commits
d7a9bd04
Commit
d7a9bd04
authored
Apr 29, 2017
by
Dave Cooper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
protect ccl from file descriptor error by avoiding client call in ignore-errors in client-test
parent
dee1b2e2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
gwl/zzinit/source/initialize.lisp
gwl/zzinit/source/initialize.lisp
+10
-1
No files found.
gwl/zzinit/source/initialize.lisp
View file @
d7a9bd04
...
...
@@ -91,6 +91,7 @@ Perhaps a zombie process is holding port ~a?~%" port port))
(
defun
client-test
(
port
)
#-
ccl
(
multiple-value-bind
(
result
error
)
(
ignore-errors
(
glisp:with-timeout
(
2
(
error
"AllegroServe port probe timed out on port ~a.
...
...
@@ -98,7 +99,15 @@ Perhaps a zombie process is holding port ~a?~%" port port))
(
net.aserve.client:do-http-request
(
format
nil
"http://localhost:~a"
port
))))
(
declare
(
ignore
result
))
(
when
(
typep
error
'error
)
port
)))
port
))
#+
ccl
(
let*
((
result
(
handler-case
(
let
((
sock
(
usocket:socket-listen
"localhost"
port
)))
(
usocket:socket-close
sock
))
(
usocket:address-in-use-error
(
e
)
:in-use
)
(
t
(
e
)
:unknown
))))
(
unless
(
member
result
'
(
:in-use
:unknown
))
port
)))
(
defun
start-gwl
(
&key
(
port
*aserve-port*
)
(
listeners
*aserve-listeners*
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment