ftp.nice.ch/peanuts/GeneralData/Usenet/news/1991/CSN-91.tar.gz#/comp-sys-next/1991/Apr/write-problem-with-Mach-2.0

This is write-problem-with-Mach-2.0 in view mode; [Up]


Date: Sun 05-Apr-1991 16:24:55 From: Michael.J.Glenn@dartmouth.edu (Michael J. Glenn) Subject: write() problem with Mach 2.0 I run an LPMud (a network game) on a NeXT running Mach 2.0, and I seem to have a few problems that I didn't have with Mach 1.0. The main problem is, there is a write() statement in the C source code that occasionally fails (randomly) and causes the program to exit. What could cause this? It seems to happen most often when there is a large network load (30 to 40 users playing at a time), but I have trapped it even with a smaller network load. The line reads if ((n = write (ip->socket, buff2 + offset, chunk)) == -1) { ... } where the ... checks errno. This problem never seemed to happen with Mach 1.0, or on other machines. (I have run on Vax, IBM) One thing only I changed when compiling in 2.0, and that is I had to add the "-bsd" option, otherwise it seemed to have some problem with inet_ntoa(). The -bsd made it compile (and seem to run) fine. Does anyone know what could cause this write() to force the program to exit, and does this -bsd option have anything to do with it? I'd be very appreciative of any help/advice. Fermat@Dartmouth.edu (admin. Dartmouth LP, telnet wings.dartmouth.edu 2000, 129.170,16.22)

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Marcel Waldvogel and Netfuture.ch.