{"id":79,"date":"2010-04-17T21:54:58","date_gmt":"2010-04-18T06:54:58","guid":{"rendered":"\/blog\/?p=79"},"modified":"2023-09-21T09:41:18","modified_gmt":"2023-09-21T00:41:18","slug":"%eb%a6%ac%eb%88%85%ec%8a%a4-%ec%8b%9c%ea%b7%b8%eb%84%90signal-%eb%aa%a9%eb%a1%9d","status":"publish","type":"post","link":"https:\/\/hasu0707.duckdns.org\/blog\/?p=79","title":{"rendered":"\ub9ac\ub205\uc2a4 \uc2dc\uadf8\ub110(signal) \ubaa9\ub85d"},"content":{"rendered":"\n<P><FONT size=2 face=\"GulimChe, Sans-serif\">\/* from \/usr\/include\/bits\/signum.h *\/<\/FONT><\/P>\n<P>&nbsp;<\/P>\n<P><FONT size=2 face=\"GulimChe, Sans-serif\">\/* Fake signal functions.&nbsp; *\/<br \/>#define SIG_ERR ((__sighandler_t) -1) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \/* Error return.&nbsp; *\/<br \/>#define SIG_DFL ((__sighandler_t) 0) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; \/* Default action.&nbsp; *\/<br \/>#define SIG_IGN ((__sighandler_t) 1) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; \/* Ignore signal.&nbsp; *\/<\/FONT><\/P>\n<P>&nbsp;<\/P>\n<P><FONT size=2><br \/><\/FONT><\/P>\n<P><FONT size=2><FONT face=\"GulimChe, Sans-serif\">\/* Signals.&nbsp; *\/<br \/>#define SIGHUP &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; 1 &nbsp; &nbsp; &nbsp; \/* Hangup (POSIX).&nbsp; *\/<br \/>#define SIGINT &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; 2 &nbsp; &nbsp; &nbsp; \/* Interrupt (ANSI).&nbsp; *\/<br \/>#define SIGQUIT &nbsp; &nbsp; &nbsp; &nbsp; 3 &nbsp; &nbsp; &nbsp; \/* Quit (POSIX).&nbsp; *\/<br \/>#define SIGILL &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; 4 &nbsp; &nbsp; &nbsp; \/* Illegal instruction (ANSI).&nbsp; *\/<br \/>#define SIGTRAP &nbsp; &nbsp; &nbsp; &nbsp; 5 &nbsp; &nbsp; &nbsp; \/* Trace trap (POSIX).&nbsp; *\/<br \/>#define SIGABRT &nbsp; &nbsp; &nbsp; &nbsp; 6 &nbsp; &nbsp; &nbsp; \/* Abort (ANSI).&nbsp; *\/<br \/>#define SIGIOT &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; 6 &nbsp; &nbsp; &nbsp; \/* IOT trap (4.2 BSD).&nbsp; *\/<br \/>#define SIGBUS &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; 7 &nbsp; &nbsp; &nbsp; \/* BUS error (4.2 BSD).&nbsp; *\/<br \/>#define SIGFPE &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; 8 &nbsp; &nbsp; &nbsp; \/* Floating-point exception (ANSI).&nbsp; *\/<br \/>#define SIGKILL &nbsp; &nbsp; &nbsp; &nbsp; 9 &nbsp; &nbsp; &nbsp; \/* Kill, unblockable (POSIX).&nbsp; *\/<br \/>#define SIGUSR1 &nbsp; &nbsp; &nbsp; &nbsp; 10 &nbsp; &nbsp;&nbsp; \/* User-defined signal 1 (POSIX).&nbsp; *\/<br \/>#define SIGSEGV &nbsp; &nbsp; &nbsp; &nbsp; 11 &nbsp; &nbsp;&nbsp; \/* Segmentation violation (ANSI).&nbsp; *\/<br \/>#define SIGUSR2 &nbsp; &nbsp; &nbsp; &nbsp; 12 &nbsp; &nbsp;&nbsp; \/* User-defined signal 2 (POSIX).&nbsp; *\/<br \/>#define SIGPIPE &nbsp; &nbsp; &nbsp; &nbsp; 13 &nbsp; &nbsp;&nbsp; \/* Broken pipe (POSIX).&nbsp; *\/<br \/>#define SIGALRM &nbsp; &nbsp; &nbsp; &nbsp; 14 &nbsp; &nbsp;&nbsp; \/* Alarm clock (POSIX).&nbsp; *\/<br \/>#define SIGTERM &nbsp; &nbsp; &nbsp; &nbsp; 15 &nbsp; &nbsp;&nbsp; \/* Termination (ANSI).&nbsp; *\/<br \/>#define SIGSTKFLT &nbsp; &nbsp; &nbsp; 16 &nbsp; &nbsp;&nbsp; \/* Stack fault.&nbsp; *\/<br \/>#define SIGCLD &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; SIGCHLD \/* Same as SIGCHLD (System V).&nbsp; *\/<br \/>#define SIGCHLD &nbsp; &nbsp; &nbsp; &nbsp; 17 &nbsp; &nbsp;&nbsp; \/* Child status has changed (POSIX).&nbsp; *\/<br \/>#define SIGCONT &nbsp; &nbsp; &nbsp; &nbsp; 18 &nbsp; &nbsp;&nbsp; \/* Continue (POSIX).&nbsp; *\/<br \/>#define SIGSTOP &nbsp; &nbsp; &nbsp; &nbsp; 19 &nbsp; &nbsp;&nbsp; \/* Stop, unblockable (POSIX).&nbsp; *\/<br \/>#define SIGTSTP &nbsp; &nbsp; &nbsp; &nbsp; 20 &nbsp; &nbsp;&nbsp; \/* Keyboard stop (POSIX).&nbsp; *\/<br \/>#define SIGTTIN &nbsp; &nbsp; &nbsp; &nbsp; 21 &nbsp; &nbsp;&nbsp; \/* Background read from tty (POSIX).&nbsp; *\/<br \/>#define SIGTTOU &nbsp; &nbsp; &nbsp; &nbsp; 22 &nbsp; &nbsp;&nbsp; \/* Background write to tty (POSIX).&nbsp; *\/<br \/>#define SIGURG &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; 23 &nbsp; &nbsp;&nbsp; \/* Urgent condition on socket (4.2 BSD).&nbsp; *\/<br \/>#define SIGXCPU &nbsp; &nbsp; &nbsp; &nbsp; 24 &nbsp; &nbsp;&nbsp; \/* CPU limit exceeded (4.2 BSD).&nbsp; *\/<br \/>#define SIGXFSZ &nbsp; &nbsp; &nbsp; &nbsp; 25 &nbsp; &nbsp;&nbsp; \/* File size limit exceeded (4.2 BSD).&nbsp; *\/<br \/>#define SIGVTALRM &nbsp; &nbsp; &nbsp; 26 &nbsp; &nbsp;&nbsp; \/* Virtual alarm clock (4.2 BSD).&nbsp; *\/<br \/>#define SIGPROF &nbsp; &nbsp; &nbsp; &nbsp; 27 &nbsp; &nbsp;&nbsp; \/* Profiling alarm clock (4.2 BSD).&nbsp; *\/<br \/>#define SIGWINCH &nbsp; &nbsp; &nbsp;&nbsp; 28 &nbsp; &nbsp;&nbsp; \/* Window size change (4.3 BSD, Sun).&nbsp; *\/<br \/>#define SIGPOLL &nbsp; &nbsp; &nbsp; &nbsp; SIGIO &nbsp; \/* Pollable event occurred (System V).&nbsp; *\/<br \/>#define SIGIO &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 29 &nbsp; &nbsp;&nbsp; \/* I\/O now possible (4.2 BSD).&nbsp; *\/<br \/>#define SIGPWR &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; 30 &nbsp; &nbsp;&nbsp; \/* Power failure restart (System V).&nbsp; *\/<br \/>#define SIGSYS &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; 31 &nbsp; &nbsp;&nbsp; \/* Bad system call.&nbsp; *\/<br \/>#define SIGUNUSED &nbsp; &nbsp; &nbsp; 31<br \/><\/FONT>\n<DIV class=autosourcing-stub><\/DIV><\/FONT>\n<P><\/P>\n","protected":false},"excerpt":{"rendered":"<p>\/* from \/usr\/include\/bits\/signum.h *\/ &nbsp; \/* Fake signal functions.&nbsp; *\/#define SIG_ERR ((__sighandler_t) -1) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \/* Error return.&nbsp; *\/#define SIG_DFL ((__sighandler_t) 0) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; \/* Default action.&nbsp; *\/#define SIG_IGN ((__sighandler_t) 1) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; \/* Ignore signal.&nbsp; *\/ &nbsp; \/* Signals.&nbsp; *\/#define SIGHUP &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_import_markdown_pro_load_document_selector":0,"_import_markdown_pro_submit_text_textarea":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[22],"tags":[],"class_list":["post-79","post","type-post","status-publish","format-standard","hentry","category-development_unix"],"_links":{"self":[{"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/79","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=79"}],"version-history":[{"count":0,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/79\/revisions"}],"wp:attachment":[{"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=79"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=79"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=79"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}