term would hang aftfter launch on logout do to open fd's related to stderr/stdin/stdout

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@22 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
imaginos
2004-08-28 17:11:37 +00:00
parent a6d0f4e991
commit 44cba5b559

View File

@@ -68,6 +68,12 @@ int main(int argc, char** argv) {
pZNC->WritePidFile(iPid);
exit(0);
}
/* keep the term from hanging on logout */
close( 0 );
close( 1 );
close( 2 );
#endif
struct sigaction sa;