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
b4042860
Commit
b4042860
authored
30 years ago
by
ram
Browse files
Options
Downloads
Patches
Plain Diff
SVR4/solaris changes.
parent
629f48d2
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
motif/server/datatrans.c
+4
-0
4 additions, 0 deletions
motif/server/datatrans.c
motif/server/main.c
+14
-0
14 additions, 0 deletions
motif/server/main.c
with
18 additions
and
0 deletions
motif/server/datatrans.c
+
4
−
0
View file @
b4042860
...
...
@@ -4,6 +4,10 @@
#include
<X11/StringDefs.h>
#include
<Xm/Xm.h>
#ifdef SVR4
#define bzero(a,n) memset(a, 0, n)
#endif
#include
"global.h"
#include
"types.h"
#include
"datatrans.h"
...
...
This diff is collapsed.
Click to expand it.
motif/server/main.c
+
14
−
0
View file @
b4042860
...
...
@@ -11,12 +11,18 @@
#include
<sys/wait.h>
#ifdef SVR4
#define bzero(a,n) memset(a, 0, n)
#endif
#define PORT 8000
#define MAX(x,y) ((x<y)?y:x)
/* Some things (ie. RT) don't define this in errno.h. Go figure. */
#ifndef SVR4
extern
int
errno
;
#endif
extern
void
serve_client
(
int
socket
);
...
...
@@ -145,7 +151,11 @@ main(int argc, char **argv)
fd_set
rfds
;
int
nfound
,
nfds
,
i
;
int
port
=
PORT
;
#ifdef SVR4
int
status
;
#else
union
wait
status
;
#endif
/* This is so resources can be passed to the servers on the command line */
global_argc
=
argc
;
...
...
@@ -230,6 +240,10 @@ main(int argc, char **argv)
establish_client
(
inet_socket
);
}
/* Prevent zombie children under Mach */
#ifdef SVR4
waitpid
(
-
1
,
&
status
,
WNOHANG
);
#else
wait3
(
&
status
,
WNOHANG
,
NULL
);
#endif
}
}
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