Documentation
¶
Index ¶
Constants ¶
View Source
const EnvName = "XW_DAEMON_IDX"
Variables ¶
This section is empty.
Functions ¶
func Background ¶
Background 把本身程序转化为后台运行(启动一个子进程, 然后自己退出) logFile 若不为空,子程序的标准输出和错误输出将记入此文件 isExit 启动子加进程后是否直接退出主程序, 若为false, 主程序返回*os.Process, 子程序返回 nil. 需自行判断处理
func NewSysProcAttr ¶
func NewSysProcAttr() *syscall.SysProcAttr
Types ¶
Click to show internal directories.
Click to hide internal directories.