Article View: gnu.gcc.help
Article #42380Bug(?) in unix domain datagram sockets
From: David Ronis
Date: Sat, 16 Dec 1995 00:00
Date: Sat, 16 Dec 1995 00:00
24 lines
1476 bytes
1476 bytes
I recently tried compiling a progam that communicates with a child using datagrams in the unix domain. The program compiled fine, but failed when run on two differenc linux boxes (one a 486 running verion 1.2.11 and another a 386, running 1.2.8). Modifying the program to use streams worked, but sometimes datagrams are simpler to implement. I'm reasonably sure that the problem isn't me, since I can reproduce the problem using the example programs that come with the glibc info pages. I've appended them below in a uuencoded tar file. They were compiled with gcc 2.7.1 using the included makefile, and run by first starting the receiver and then the server. Both fail. When compiled and run on a sun, both work as expected (although note that the receiver doesn't clean up after itself). Any help would be appreciated. David Ronis --------------------------cut here--------------------------------- begin 644 bug.tar.gz <uuencoded_portion_removed> GEA"=RTPIVR2G;)5**:644DHII9122BFEE%)*N4?^!0>FU[(`*``` ` end
Technical Details
Message-ID:
<gnusenet4akd3o$nmk@sifon.cc.mcgill.ca>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,bbda13fa0f21336a,start X-Google-Attributes: gid11318c,public From: ronis@gibbs.chem.mcgill.ca (David Ronis) Subject: Bug(?) in unix domain datagram sockets Date: 1995/12/16 Message-ID: <gnusenet4akd3o$nmk@sifon.cc.mcgill.ca> X-Deja-AN: 122048553 distribution: gnu sender: daemon@cis.ohio-state.edu organization: McGill University newsgroups: gnu.gcc.help