equal
deleted
inserted
replaced
70 lua_pushstring(L, "setsid-failed"); |
70 lua_pushstring(L, "setsid-failed"); |
71 return 2; |
71 return 2; |
72 } |
72 } |
73 |
73 |
74 /* Close stdin, stdout, stderr */ |
74 /* Close stdin, stdout, stderr */ |
75 /* close(0); |
75 close(0); |
76 close(1); |
76 close(1); |
77 close(2); |
77 close(2); |
78 */ |
78 |
79 /* Final fork, use it wisely */ |
79 /* Final fork, use it wisely */ |
80 if(fork()) |
80 if(fork()) |
81 exit(0); |
81 exit(0); |
82 |
82 |
83 /* Show's over, let's continue */ |
83 /* Show's over, let's continue */ |