View Full Version : risvegliare un processo da pause...
ragazzi quando faccio qualche programmino in multiprocessing, fork e roba varia, non riesco a risvegliare un processo da pause()
ma come devo fare? non basta mandargli un segnale tipo kill(pid,0)?
penso che tu debba definire un tuo signal handler.
manda una mail all'utente ilsensine, lui lo sa sicuramente ;)
ilsensine
05-07-2004, 08:24
Dal benedetto FM:
DESCRIPTION
The pause library function causes the invoking process (or thread) to
sleep until a signal is received that either terminates it or causes it
to call a signal-catching function.
RETURN VALUE
The pause function only returns when a signal was caught and the sig-
nal-catching function returned. In this case pause returns -1, and
errno is set to EINTR.
nb kill(..., 0) NON manda alcun segnale. Anche qui, il FM spiega cosa fa.
vBulletin® v3.6.4, Copyright ©2000-2025, Jelsoft Enterprises Ltd.