|
|
Posted Dec 30, 2007 at 7:35:13 PM
Subject: software break
good morning to all; I am new here and I shall like resolution found well has my problem in this financial year under linux (Mandriva);
here is swording:
under unix / linux signs correspond to software breaks. processes react to the récéption of of 3 manners:
1) to put off towards a specific function
2) to ignore the sign
3)stopping of process
parmis signs they differentiate:sighup, siginit,sigkill,..
the source programmetion of signs rests on function: sigaction.
let be following instructions:
int a,b,c;
a=10; b=0;
c=a/b;
1) compile and executer this program
2) what is the shown message of error?
3) what is the sign which treats this exeption? (name and number)
4) write and execute a program in c which puts off software break: error of counting in floating vrigule (division by zero).
5) write and execute a script which shows the list of the available signs and that throws your executable program.
indication:
use one or several fonctions system belonging to the bookshop: #include <signal.h>
thank you for answering me fast please.
|