Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
cmucl-copy
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
Richard M Kreuter
cmucl-copy
Commits
327aae7a
Commit
327aae7a
authored
32 years ago
by
wlott
Browse files
Options
Downloads
Patches
Plain Diff
UNIX-FORK returns NIL, not -1, when it fails.
parent
32f56768
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
code/run-program.lisp
+7
-6
7 additions, 6 deletions
code/run-program.lisp
with
7 additions
and
6 deletions
code/run-program.lisp
+
7
−
6
View file @
327aae7a
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
;;; Scott Fahlman or slisp-group@cs.cmu.edu.
;;; Scott Fahlman or slisp-group@cs.cmu.edu.
;;;
;;;
(
ext:file-comment
(
ext:file-comment
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/run-program.lisp,v 1.1
1
1992/0
2/1
8 0
2
:2
0:01
wlott Exp $"
)
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/run-program.lisp,v 1.1
2
1992/0
7/2
8 0
0
:2
2:58
wlott Exp $"
)
;;;
;;;
;;; **********************************************************************
;;; **********************************************************************
;;;
;;;
...
@@ -480,15 +480,16 @@
...
@@ -480,15 +480,16 @@
(
multiple-value-bind
(
multiple-value-bind
(
child-pid
errno
)
(
child-pid
errno
)
(
unix:unix-fork
)
(
unix:unix-fork
)
(
cond
((
zerop
child-pid
)
(
cond
((
null
child-pid
)
;; We are the child. Note: setup-child NEVER returns
(
setup-child
pfile
args
env
stdin
stdout
stderr
pty-name
before-execve
))
((
minusp
child-pid
)
;; This should only happen if the bozo has too
;; This should only happen if the bozo has too
;; many running procs.
;; many running procs.
(
error
"Could not fork child process: ~A"
(
error
"Could not fork child process: ~A"
(
unix:get-unix-error-msg
errno
)))
(
unix:get-unix-error-msg
errno
)))
((
zerop
child-pid
)
;; We are the child. Note: setup-child NEVER
;; returns
(
setup-child
pfile
args
env
stdin
stdout
stderr
pty-name
before-execve
))
(
t
(
t
;; We are the parent.
;; We are the parent.
(
setf
proc
(
make-process
:pid
child-pid
(
setf
proc
(
make-process
:pid
child-pid
...
...
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