Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

Linux ÐźÅsignal´¦Àí»úÖÆ Èý

Ç°ÃæÁ½½ÚÒѾ­½éÉÜÁËÓйØÐźŵĴ󲿷ÖÖª
ʶ¡£ÕâÒ»½ÚÎÒÃÇÀ´Á˽âÒ»ÏÂÕâЩϵͳµ÷Óá£ÆäÖУ¬ÏµÍ³µ÷ÓÃsignalÊǽø³ÌÓÃÀ´É趨ij¸öÐźŵĴ¦Àí·½·¨£¬ÏµÍ³µ÷ÓÃkillÊÇÓÃÀ´·¢ËÍÐźŸøÖ¸¶¨½ø³ÌµÄ¡£Õâ

Á½¸öµ÷ÓÿÉÒÔÐγÉÐźŵĻù±¾²Ù×÷¡£ºóÁ½¸öµ÷ÓÃpauseºÍalarmÊÇͨ¹ýÐźÅʵÏֵĽø³ÌÔÝÍ£ºÍ¶¨Ê±Æ÷£¬µ÷ÓÃalarmÊÇͨ¹ýÐźÅ֪ͨ½ø³Ì¶¨Ê±Æ÷µ½Ê±¡£Ëù
ÒÔÔÚÕâÀÎÒÃÇ»¹Òª½éÉÜÕâÁ½¸öµ÷Óá£
        1¡¢signal ϵͳµ÷ÓÃ
        ϵͳµ÷ÓÃsignalÓÃÀ´É趨ij¸öÐźŵĴ¦Àí·½·¨¡£¸Ãµ÷ÓÃÉùÃ÷µÄ¸ñʽÈçÏ£º
        void (*signal(int signum, void (*handler)(int)))(int);
        ÔÚʹÓøõ÷ÓõĽø³ÌÖмÓÈëÒÔÏÂÍ·Îļþ£º
        #include <signal.h>
        ÉÏÊöÉùÃ÷¸ñʽ±È½Ï¸´ÔÓ£¬Èç¹û²»Çå³þÈçºÎʹÓã¬Ò²¿ÉÒÔͨ¹ýÏÂÃæÕâÖÖÀàÐͶ¨ÒåµÄ¸ñʽÀ´Ê¹Óã¨POSIXµÄ¶¨Ò壩£º
        typedef void (*sighandler_t)(int);
        sighandler_t signal(int signum, sighandler_t handler);
        µ«ÕâÖÖ¸ñʽÔÚ²»Í¬µÄϵͳÖÐÓв»Í¬µÄÀàÐͶ¨Ò壬ËùÒÔҪʹÓÃÕâÖÖ¸ñʽ£¬×îºÃ»¹ÊDzο¼Ò»ÏÂÁª»úÊֲᡣ
        ÔÚµ÷ÓÃÖУ¬²ÎÊýsignumÖ¸³öÒªÉèÖô¦Àí·½·¨µÄÐźš£µÚ¶þ¸ö²ÎÊýhandlerÊÇÒ»¸ö´¦Àíº¯Êý£¬»òÕßÊÇ
        SIG_IGN£ººöÂÔ²ÎÊýsignumËùÖ¸µÄÐźš£
        SIG_DFL£º»Ö¸´²ÎÊýsignumËùÖ¸ÐźŵĴ¦Àí·½·¨ÎªÄ¬ÈÏÖµ¡£
       
´«µÝ¸øÐźŴ¦ÀíÀý³ÌµÄÕûÊý²ÎÊýÊÇÐźÅÖµ£¬ÕâÑù¿ÉÒÔʹµÃÒ»¸öÐźŴ¦ÀíÀý³Ì´¦Àí¶à¸öÐźš£ÏµÍ³µ÷ÓÃsignal·µ»ØÖµÊÇÖ¸¶¨ÐźÅsignumÇ°Ò»´ÎµÄ´¦ÀíÀý³Ì
»òÕß´íÎóʱ·µ»Ø´íÎó´úÂëSIG_ERR¡£ÏÂÃæÀ´¿´Ò»¸ö¼òµ¥µÄÀý×Ó£º
C´úÂë < type="application/x-shockwave-flash" width="14" height="15" src="http://luckyclouds.javaeye.com/javascripts/syntaxhighlighter/clipboard_new.swf" src="http://luckyclouds.javaeye.com/javascripts/syntaxhighlighter/clipboard_new.swf"


Ïà¹ØÎĵµ£º

ÔÚlinuxÏÂʵÏÖweb qqµÄ×ÀÃ滯


´´½¨×ÀÃæͼ±ê
Ä¿Ç°½«ÍøÂçÓ¦ÓÃÀ©Õ¹µ½×ÀÃæÊÇÒ»¸öÇ÷ÊÆ£¬´æÔÚןܶà½â¾ö·½°¸£¬±¾ÎÄÒÔ Mozilla Prism ΪÀý£¬ÀàËƵķ½·¨Í¬ÑùÊÊÓÃÓÚ Google Chrome ¡£
1. µ½ Mozilla Prism µÄÍøÕ¾ÉÏÏÂÔØ Prism£¬µã»÷ Download Now Ö®ºó»áÌáʾÓÐÁ½ÖÖ£¬Ò»ÖÖÊÇÒÔ Mozilla Firefox À©Õ¹µÄ·½Ê½£¬ÊʺÏÒѾ­°²×°ÓÐ Firefox µÄÅóÓÑ£»Ò»Ö ......

Linux ²âÊÔsendmailÓʼþ·¢ËÍ

ÓÖÅöµ½ÓʼþÎÊÌ⣬ÔÚmagentoǰ̨ע²áÐÂÓû§£¬Ï¶©µ¥¶¼Ã»ÓÐÊÕµ½Óʼþ¡£µ«ÊÇÌáʾ¶¼ÊÇ˵Õý³£¡£
Ö±½ÓÔÚsshÖÐʹÓÃÏÂÁÐÃüÁî²âÊÔ£¬Á¬½Ó³¬Ê±£º
echo "Subject: test" | /usr/lib/sendmail -v xinhaozheng@gmail.com
Ìáʾ£º
WARNING: local host name (server) is not qualified; see cf/README: WHO AM I?
xinhaozheng ......

iphone 3.1.2¿ª·¢»·¾³´î½¨——linuxƽ̨

Ò»¡¢Òý×Ó
Ç°¶Îʱ¼ä¿´µ½ÁËapple¹«Ë¾·¢²¼ÁËiphone os4.0µÄÔ¤ÀÀÊÓƵ£¬iphoneÖÕÓÚ´òËãÖ§³Ö¶àÈÎÎñÁË£¬ÓÈÆäÊǶÔÓÚÔ¤ÀÀÊÓƵÖеÄskypeÈí¼þµÄչʾÈÃÈËÓ¡ÏóÉî¿Ì¡£
Ò»°ãÀ´Ëµ£¬Ïë×öÒ»ÃûÕý¹æµÄiphoneÓ¦Óÿª·¢ÕßÓ¦µ±ÖÁÉÙ×¼±¸Èý¼þÊÂÇ飺
£¨1£©Ò»Ì¨appleµÄµçÄÔ
¿ÉÒÔÊÇmac book»òÕßmac mini£¬¹úÄڱȽϓ½Ú¼ó”µÄ¹«Ë¾´ó¶¼Ñ¡ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ