📄 daemonize.h
字号:
/* $Id: daemonize.h,v 1.5 2007/02/07 22:11:43 nanard Exp $ *//* MiniUPnP project * http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/ * (c) 2006 Thomas Bernard * This software is subject to the conditions detailed * in the LICENCE file provided within the distribution */#ifndef __DAEMONIZE_H__#define __DAEMONIZE_H__/* daemonize() * "fork" to background, detach from terminal, etc... * returns: pid of the daemon, exits upon failure */intdaemonize(void);/* writepidfile() * write the pid to a file */intwritepidfile(const char * fname, int pid);/* checkforrunning() * check for another instance running * returns: 0 only instance * -1 invalid filename * -2 another instance running */intcheckforrunning(const char * fname);#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -