æ¯æ¥ã®åããã« ä»äºï¼è¶£å³ãããã¦ãããã«ä½¿ã£ã¦ãããã½ã³ã³ï¼ä¸»ã«MacOSXï¼ï¼åçï¼æ è¡ã®ãã¨ãªã©æ¸ãã¦ãã¾ãï¼ Python ã§ããã°ã©ã ééä¿¡ã®åå¼·ããã¦ããï¼ ãã®ä¸ã§ fork ã使ã£ã¦ããã»ã¹ã®è¤è£½ãä½ã£ã¦ä½¿ã£ã¦ããï¼ ãã®ã¨ãåããã»ã¹ãçµäºãããããã«è¦ªããã»ã¹ãã sys.kill(pid, 8) ã使ã£ã¦åããã»ã¹ãå¼·å¶çã«çµäºãã¦ãããï¼åããã»ã¹ãèªçºçã«çµäºããããï¼ ããã§ï¼è¦ªããã»ã¹ããåããã»ã¹ã«ã¡ãã»ã¼ã¸ãéã£ã¦ï¼åããã»ã¹ã¯ãã®ã¡ãã»ã¼ã¸ãåãåãã°çµäºããï¼ã¨ããããã«ãããï¼ ãã®ããã»ã¹ééä¿¡ãè¡ãããã« pipe ã使ãï¼ import sys import os END_SIGNAL = ".\n" rpipe, wpipe = os.pipe() pid = os.fork() if pid == 0: # Child process os
{{#tags}}- {{label}}
{{/tags}}