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
5f6c1008
Commit
5f6c1008
authored
14 years ago
by
Sander Mathijs van Veen
Browse files
Options
Downloads
Patches
Plain Diff
Added implementation details to the report of OS ass 3.
parent
b4298d2e
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/report/report.tex
+19
-0
19 additions, 0 deletions
os/ass3/report/report.tex
with
19 additions
and
0 deletions
os/ass3/report/report.tex
+
19
−
0
View file @
5f6c1008
...
...
@@ -249,6 +249,12 @@ for i in {1..6}; do ./fish < input$i.txt; \
\subsection
{
Signal verwerking
}
In stap
7
wordt gevraagd om een signal handler in te bouwen in de bigfish. Met
deze signal handler kunnen signal worden opgevangen en in dit geval schrijft de
handler een bericht naar
\texttt
{
stdout
}
met de ontvangen signal. Voordat de
bigfish leest van
\texttt
{
stdin
}
, worden de signal handlers als volgt
toegewezen:
\begin
{
lstlisting
}
[
numbers
=
none,backgroundcolor
=
\color
{
darkgray
}
]
/*
Bind signal handlers
*/
if
(
sigaction
(
SIGINT,
&
action, NULL
)
...
...
@@ -262,6 +268,19 @@ if( sigaction(SIGINT, &action, NULL)
% wait() beschrijven.
\noindent
In de man page van
\texttt
{
sigaction
}
\footnote
{
http:
//
www.kernel.org
/
doc
/
man
-
pages
/
online
/
pages
/
man
2
/
sigaction.
2
.html
}
staat een
\emph
{
flag
}
met betrekking tot zombieprocessen en
\texttt
{
SIGCHLD
}
:
\\
\\
\texttt
{
SA
\_
NOCLDWAIT
(
since Linux
2
.
6
)
\\
If signum is SIGCHLD, do not
transform children into zombies when they terminate. This flag is only
meaningful when establishing a handler for SIGCHLD.
}
\\
\\
Met die flag worden kindprocessen niet op defunct gezet, maar direct
vrijgegeven. Daardoor is er geen
\texttt
{
wait
()
}
meer nodig binnen de signal
handler.
\pagebreak
\begin
{
appendices
}
...
...
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