This mail is an automated notification from the bugs tracker of the project: GNUstep.
/**************************************************************************/ [bugs #10967] Full Item Snapshot: URL: <http://savannah.gnu.org/bugs/?func=detailitem&item_id=10967> Project: GNUstep Submitted by: Riccardo mottola On: Thu 11/11/2004 at 10:55 Category: Base/Foundation Severity: 5 - Average Item Group: Bug Resolution: None Privacy: Public Assigned to: None Status: Open Summary: gdnc daemon/file descriptor problem on NetBSD 1.6.2 Original Submission: On NetBSD 1.6.2 gdnc fails to run: as soon as a client connects, it aborts. the culprit seems to be this code part: for (c = 0; c < FD_SETSIZE; c++) { if (is_daemon || (c != 2)) { (void)close(c); } } it seems that too many fs's get closed and then threads break with a strange error message (already reported in another bug report, so almost for sure the two bugs are related to the same problem). substtituting FD_SETSIZE with <= 2 works. I never used FD_SETSIZE as in the code abce and the NetBSD manpage even states that FD_SETSIZE could be user set. Alexander M. suggest to use the syscall daemon() on the system which have it to make the daemon. It is a BSD-style call, but linux seems to have it too. For detailed info, follow this link: <http://savannah.gnu.org/bugs/?func=detailitem&item_id=10967> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/ _______________________________________________ Bug-gnustep mailing list [EMAIL PROTECTED] http://lists.gnu.org/mailman/listinfo/bug-gnustep
