/*
* Let kernel threads use this to say that they
* allow a certain signal (since daemonize() will
* have disabled all of them by default).
*/
int allow_signal(int sig)
public class txttest {/*** 读取txt文件的内容* param file 想要读取的文件对象 * return 返回文件内容 */ public static String txt2String(File file){ StringBuilder result new StringBuilder(); try{ BufferedReader br new BufferedReader(new FileReader(file));//构…