שאלה לגבי הפונקציה alarm

oketz1

New member
שאלה לגבי הפונקציה alarm

ביוניקס... מישהו יכול להסביר לי מה הפונקציה עושה. אני יודע שזה קשור לסיגנלים , לא כלכך מבין את רעיון הפונקציה . תודה
 

oketz1

New member
הכם הכוונה היא למעשה לשלוח

סיגנל לפרוסס תוך X שניות. וכעבור X שניות להרוג את הפרוסס ? ואם כן . מה קורה אם במידה נשלח אותו סיגנל alarm קודם לכן ?
 

coredumb

New member
manpages are awesome

NAME alarm - set an alarm clock for delivery of a signal SYNOPSIS #include <unistd.h> unsigned int alarm(unsigned int seconds); DESCRIPTION alarm arranges for a SIGALRM signal to be delivered to the process in seconds seconds. If seconds is zero, no new alarm is scheduled. In any event any previously set alarm is cancelled.​
 

selalerer

New member
ומה הפרוסס עושה עם SIGALRM?

אם יש בכלל איזה נוהג בנושא או שכל תוכניתן גורם לתוכנית שלו להגיב כרצונו להודעה הזאת?
 
למעלה