Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
uva
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Taddeüs Kroes
uva
Commits
f0b0d329
Commit
f0b0d329
authored
14 years ago
by
Sander Mathijs van Veen
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of
ssh://vo20.nl/git/uva
parents
5296f7b1
f9a481b0
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
os/ass3/fishbones.c
+5
-5
5 additions, 5 deletions
os/ass3/fishbones.c
with
5 additions
and
5 deletions
os/ass3/fishbones.c
+
5
−
5
View file @
f0b0d329
...
...
@@ -170,12 +170,12 @@ main(int argc, char * argv[])
perror
(
"Cannot write to pipe
\n
"
);
exit
(
1
);
}
if
(
c
==
'P'
)
wait
(
NULL
);
}
else
{
if
(
c
==
'P'
)
wait
(
NULL
);
pid_t
child_id
;
kiddoCount
++
;
...
...
@@ -192,8 +192,8 @@ main(int argc, char * argv[])
gup
(
log1
,
log2
,
pipe_id
,
kiddoCount
);
break
;
default:
fprintf
(
log1
,
"Started child process %d
\n
"
,
child_id
);
fprintf
(
log2
,
"Started child process %d
\n
"
,
child_id
);
fprintf
(
log1
,
"Started child process %d
with id %d
\n
"
,
kiddoCount
,
child_id
);
fprintf
(
log2
,
"Started child process %d
with id %d
\n
"
,
kiddoCount
,
child_id
);
}
}
}
...
...
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