linux daemon() Ó÷¨
Ãû³Æ
daemon-ÔËÐÐÓÚºǫ́
¸ÅÒª
#include <unistd.h>
int daemon(int nochdir, int noclose);
ÃèÊö
daemon()º¯Êý£¬Ö÷ÒªÓÃÓÚijЩ³ÌÐòÏ£Íû×Ô¼ºÍÑÀëÖն˵ĿØÖƶøÔËÐÐÓÚºǫ́µÄÇé¿ö¡£
³ý·ÇnochdirΪ·ÇÁãÖµ£¬Èç¹ûnochdirΪ0£¬ÄÇôdaemon»á´Óµ±Ç°Ä¿Â¼£¬¸ü¸Äµ½¸ùĿ¼£¨“/”£©ÏÂÔËÐС£
³ý·ÇnocloseΪ·ÇÁãÖµ£¬Èç¹ûnocloseΪ0£¬ÄÇôdaemon»á½«±ê×¼ÊäÈ룬±ê×¼Êä³ö£¬±ê×¼´íÎóÊä³öÖض¨Ïòµ½/dev/null¡£
·µ»ØÖµ
³É¹¦·µ»Ø0£¬Ê§°Ü·µ»Ø-1¡£
NAME
daemon - run in the background
SYNOPSIS
#include <unistd.h>
int daemon(int nochdir, int noclose);
DESCRIPTION
The daemon() function is for programs wishing to detach themselves
from the controlling terminal and run in the background as system
daemons.
Unless the argument nochdir is non-zero, daemon() changes the current
working directory to the root ("/").
Unless the argument noclose is non-zero, daemon() will redirect stan-
dard input, standard output and standard error to /dev/null.
RETURN VALUE
(This function forks, and if the fork() succeeds, the parent does
_exit(0), so that further errors are seen by the child only.) On
success zero will be returned. If an error occurs, daemon() returns
&nb
Ïà¹ØÎĵµ£º
£¨L2CAPÐÒé¼ò½é£¬L2CAPÔÚBlueZÖеÄʵÏÖÒÔ¼°L2CAP±à³Ì½Ó¿Ú£©
Ò»£ºL2CAPÐÒé¼ò½é£º
Logical Link Control and Adaptation Protocol(L2CAP)
Âß¼Á¬½Ó¿ØÖƺÍÊÊÅäÐÒé (L2CAP) ΪÉϲãÐÒéÌṩÃæÏòÁ¬½ÓºÍÎÞÁ¬½ÓµÄÊý¾Ý·þÎñ£¬²¢Ìṩ¶àÐÒ鹦ÄܺͷָîÖØ×é²Ù×÷¡£L2CAP ³äÐíÉϲãÐÒéºÍÓ¦ÓÃÈí¼þ´«ÊäºÍ½ÓÊÕ×î´ó³¤¶ÈΪ 64K µÄ L2CAP Ê ......
1.A. extract the install file
tar zxvf bxviewer.tar.gz
cd bxviewer
./installbxv
logout
1.B. if system can't find bxv after ur installation, you can always set
it up by hand
......
1¡¢ÏµÍ³Ê±ÖÓ(System Clock)ÓëʵʱʱÖÓ(Real Time Clock)
ʵʱʱÖÓÖ¸µÄÊÇÓ²¼þʱÖÓ£¬¶øϵͳʱÖÓÖ¸µÄÊÇÈí¼þʱÖÓ£¬´æÔÚÓÚLinuxϵͳ֮ÖС£µ±ÏµÍ³Æô¶¯Ê±£¬Linux»á´ÓÓ²¼þ¶Áȡʱ¼ä×öΪϵͳʱ¼ä£¬Ö®ºó±ãÒ»Ö±²ÉÓÃϵͳʱ¼ä¡£LinuxÃüÁîdate¿ÉÒÔÓÃÀ´ÉèÖÃϵͳʱÖÓ£¬¶øhwclock»òÕßclockÔòÓÃÀ´ÉèÖÃʵʱʱÖÓ£¬¼´Ó²¼þʱÖÓ¡£
2¡¢Ê±ÖÓƵÂÊ
µ¥ ......
±¾ÎľÍÓû§ÔÚ×°linuxµÄ¹ý³ÌÖУ¬ËùÓöµ½µÄlinux·ÖÇøÎÊÌâÀ´ÏêϸµØ½éÉÜһϣ¬ÕâÀïÒÔred hat linux7.1ΪÀý¡£
Ê×ÏÈÎÒÃÇÒª¶ÔÓ²ÅÌ·ÖÇøµÄ»ù±¾¸ÅÄî½øÐÐһЩ³õ²½µÄÁ˽⣬ӲÅ̵ķÖÇøÖ÷Òª·ÖΪ»ù±¾·ÖÇø£¨primary partion£©ºÍÀ©³ä·ÖÇø(extension partion)Á½ÖÖ£¬»ù±¾·ÖÇøºÍÀ©³ä·ÖÇøµÄÊýÄ¿Ö®ºÍ²»ÄÜ´óÓÚËĸö¡£ÇÒ»ù±¾·ÖÇø¿ÉÒÔÂíÉϱ»Ê¹Óõ«² ......
ÎÒÊÇ KDE Fans¡£ËùÒÔ£¬¿ÉÄÜÒÔÏ»á³öÏַdz£Ö÷¹ÛµÄ¹Ûµã¡£µ«ÊÇ£¬ÎÒ³ÐÈÏÎÒ²»¼«¶Ë~
Linux ϵÄÎÄÕÂÒ»´ó¶Ñ¶¼ÊÇ GNOME ÏÂÄ£·Â Mac£¬µ«ÊÇÔõÑùÄ£·Â¶¼¸Ð¾õ²»Í¬£¬±Ï¾¹²»Í¬¾ÍÊDz»Í¬~
²»È粻ҪһζµØ³ÁË~ ÏàËÆÒ²¿ÉÒÔ°¡~ ÕâÑù¼ÈÓÐÌØÉ«ÓÖÓÐÃÀ¸Ð~
³ýÁË GNOME Ï嵀 Mac4Lin »¹Óкܲ»´íµÄ Elemetary¡£ÕâÁ½¸ö¶¼Êdz£¼ûµÄ GNOME ·Â Mac µÄ ......