FrontPage|FindPage|TitleIndex|RecentChanges| Signal |
#include <signal.h> bool is_term = false; void sig_term(int signo) { is_term = true; } int main(void) { .... signal(SIGTERM, (void (*)(int))sig_term); signal(SIGINT, (void (*)(int))sig_term); .... while(! is_term){ // ¹«ÇÑ·çÇÁ } .... // ¿©±â¼ Á¾·áó¸® µî.. }
last modified 2004-07-01 10:52:53 EditText|FindPage|DeletePage|LikePages| |