[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bugs #10967] gdnc daemon/file descriptor problem on NetBSD 1.6.2
From: |
Riccardo mottola |
Subject: |
[bugs #10967] gdnc daemon/file descriptor problem on NetBSD 1.6.2 |
Date: |
Thu, 11 Nov 2004 06:01:31 -0500 |
User-agent: |
Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.2) Gecko/20040825 Camino/0.8.1 |
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/
- [bugs #10967] gdnc daemon/file descriptor problem on NetBSD 1.6.2,
Riccardo mottola <=