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
e1f12db9
Commit
e1f12db9
authored
7 years ago
by
Raymond Toy
Browse files
Options
Downloads
Patches
Plain Diff
Remove wait3 stuff
`wait3` is removed along with alien routine and the constants.
parent
81e08ecb
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
src/code/run-program.lisp
+0
-47
0 additions, 47 deletions
src/code/run-program.lisp
with
0 additions
and
47 deletions
src/code/run-program.lisp
+
0
−
47
View file @
e1f12db9
...
...
@@ -27,58 +27,12 @@
process-close
process-pid
process-p
))
;;;; Import WAIT3 from unix.
(
alien:def-alien-routine
(
"wait3"
c-wait3
)
c-call:int
(
status
c-call:int
:out
)
(
options
c-call:int
)
(
rusage
c-call:int
))
(
alien:def-alien-routine
(
"prog_status"
c-prog-status
)
c-call:void
(
pid
c-call:int
:out
)
(
what
c-call:int
:out
)
(
code
c-call:int
:out
)
(
corep
c-call:int
:out
))
(
eval-when
(
load
eval
compile
)
(
defconstant
wait-wnohang
#-
svr4
1
#+
svr4
#o100
)
(
defconstant
wait-wuntraced
#-
svr4
2
#+
svr4
4
)
(
defconstant
wait-wstopped
#-
svr4
#o177
#+
svr4
wait-wuntraced
))
(
defun
wait3
(
&optional
do-not-hang
check-for-stopped
)
"Return any available status information on child processed. "
(
multiple-value-bind
(
pid
status
)
(
c-wait3
(
logior
(
if
do-not-hang
wait-wnohang
0
)
(
if
check-for-stopped
wait-wuntraced
0
))
0
)
(
cond
((
or
(
minusp
pid
)
(
zerop
pid
))
nil
)
((
eql
(
ldb
(
byte
8
0
)
status
)
wait-wstopped
)
(
values
pid
:stopped
(
ldb
(
byte
8
8
)
status
)))
((
zerop
(
ldb
(
byte
7
0
)
status
))
(
values
pid
:exited
(
ldb
(
byte
8
8
)
status
)))
(
t
(
let
((
signal
(
ldb
(
byte
7
0
)
status
)))
(
values
pid
(
if
(
or
(
eql
signal
unix:sigstop
)
(
eql
signal
unix:sigtstp
)
(
eql
signal
unix:sigttin
)
(
eql
signal
unix:sigttou
))
:stopped
:signaled
)
signal
(
not
(
zerop
(
ldb
(
byte
1
7
)
status
)))))))))
(
defun
prog-status
()
(
multiple-value-bind
(
ret
pid
what
code
corep
)
(
c-prog-status
)
...
...
@@ -89,7 +43,6 @@
code
(
not
(
zerop
corep
))))))
;;;; Process control stuff.
...
...
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