´ÙÀ½ À§·Î ÀÌÀü ¸ñÂ÷ ¸®´ª½º ÇÁ·Î±×·¡¸Ó¸¦ À§ÇÑ °¡À̵å

10.2.1 SVR4,BSD,POSIX.1¿¡¼­ÀÇ ½ÅÈ£µé (Signals under SVR4,BSD,and POSOX.1)

½ÅÈ£µéÀÇ SVR4 ±¸ÇöÀº signal,sigset,sighold,sigrelse,segignore,sigpause ÇÔ¼öµéÀ» ÅëÇÕ½ÃŲ´Ù. SVR4ÇÏ¿¡¼­ÀÇ signal ÇÔ¼ö´Â ½Å·ÚÇÒ ¼ö ¾ø´Â(unreliable) ½ÅÈ£µé(signals) ¸¸À» Á¦°øÇϴ ǥÁØÀûÀÎ UNIX V7 ½ÅÈ£µé°ú µ¿ÀÏÇÏ´Ù. ´Ù¸¥ ÇÔ¼öµéÀº ½ÅÈ£ Ãë±ÞÀÚ(signal handler)ÀÇ ÀÚµ¿ÀûÀÎ ÀçÀνºÅç ±â´ÉÀ» °¡Áø ½ÅÈ£µéÀ» Á¦°øÇÏÁö¸¸, ½Ã½ºÅÛ È£ÃâÀÇ Àç½ÃÀÛ(restarting)Àº Áö¿øÇÏÁö ¾Ê´Â´Ù.

BSDÇÏ¿¡¼­, signal,sigvec,sigblock,sigsetmask,sigpause ÇÔ¼öµéÀº Áö¿øµÈ´Ù. ¸ðµç ÇÔ¼öµéÀº ½Å·ÚÇÒ ¼ö ÀÖ´Â ½ÅÈ£µé¿¡°Ô µðÆúÆ®·Î ½Ã½ºÅÛ È£Ãâ Àç½ÃÀÛÀ» Á¦°øÇÏÁö¸¸, ÇÁ·Î±×·¡¸Ó°¡ ¿øÇÑ´Ù¸é »ç¿ëÇÏÁö ¾ÊÀ» ¼öµµ ÀÖ´Ù.

POSIX.1 ÇÏ¿¡¼­, sigaction,sigprocmask,sigpanding,sigsuspend´Â Á¦°øµÈ´Ù. signal ÇÔ¼ö´Â ¾øÀ¸¸ç POSIX.1¿¡ µû¶ó °¡Ä¡°¡ Ç϶ôµÇ¾ú´Ù´Â °Í¿¡ ÁÖ¸ñÇ϶ó. ÀÌ·¯ÇÑ ÇÔ¼öµéÀº ½Å·ÚÇÒ ¼ö ÀÖ´Â(reliable) ½ÅÈ£µé(signals)À» Á¦°øÇÏÁö¸¸, ½Ã½ºÅÛ È£Ãâ Àç½ÃÀÛ µ¿ÀÛÀº POSIX¿¡ ÀÇÇØ Á¤ÀǵÇÁö ¾Ê¾Ò´Ù. sigactionÀÌ SVR4¿Í BSDÇÏ¿¡¼­ »ç¿ëµÇ¾î Áø´Ù¸é, ½Ã½ºÅÛ È£Ãâ Àç½ÃÀÛÀº µðÆúÆ®·Î »ç¿ëµÇÁö ¾ÊÁö¸¸, ½ÅÈ£ Ç÷¡±× SA_RESTART°¡ ÁöÁ¤µÇ¾î ÀÖÀ¸¸é on »óÅ·ΠÀüȯµÉ ¼ö ÀÖ´Ù.

±×·¯¹Ç·Î, ÇÁ·Î±×·¥¿¡¼­ ½ÅÈ£µéÀ» »ç¿ëÇÏ´Â °¡Àå ÁÁÀº ¹æ¹ýÀº ´ç½ÅÀÌ ¸íÈ®ÇÏ°Ô ½ÅÈ£ Ãë±ÞÀÚ(handler)ÀÇ µ¿ÀÛÀ» ÁöÁ¤ÇÒ ¼ö ÀÖ´Â sugactionÀ» »ç¿ëÇÏ´Â °ÍÀÌ´Ù. ¾î·µç, signalÀº ¿©ÀüÈ÷ ¸¹Àº ÀÀ¿ëÇÁ·Î±×·¥¿¡¼­ »ç¿ëµÇ°í À§¿Í°°ÀÌ signalÀÌ SVR4¿Í BSDÇÏ ¿¡¼­ ´Ù¸¥ semantics¸¦ Á¦°øÇÏ´Â °ÍÀ» º¼ ¼ö ÀÖ´Ù.


ÀÌÀü:10.2 ½ÅÈ£ ´Ù·ç±â (Signal Handling) ´ÙÀ½:10.2.2 ¸®´ª½º ½ÅÈ£ ¼±ÅûçÇ×

Copyright (c) 1996,1997 by Euibeom.Hwang & SangEun.Oh All Rights Reserved

Email To:Webmaster , Another address
LAST UPDATE Dec 19,1997
Created Dec 19,1997