[Issue 268] New: Bug with SocketSet and classes
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Jul 29 00:09:08 PDT 2006
http://d.puremagic.com/issues/show_bug.cgi?id=268
Summary: Bug with SocketSet and classes
Product: D
Version: 0.162
Platform: PC
OS/Version: Linux
Status: NEW
Keywords: patch
Severity: normal
Priority: P2
Component: Phobos
AssignedTo: bugzilla at digitalmars.com
ReportedBy: felipe.contreras at gmail.com
If you do the following:
new SocketSet (1);
rset.reset ();
rset.add (sock);
Inside a class, SocketSet:Add segfaults.
It only happens inside the class, and with values < than 256.
I added the following in socket.d and it seemed to work:
if(nbytes < NFDBITS)
nbytes = NFDBITS;
--
More information about the Digitalmars-d-bugs
mailing list