Article View: news.software.nntp
Article #40493Re: Diablo debugging problems...
From: Joe Greco
Date: Tue, 05 Oct 1999 00:00
Date: Tue, 05 Oct 1999 00:00
38 lines
2802 bytes
2802 bytes
In news.software.nntp article <brad-0510991730300001@brad.techos.skynet.be>, brad@shub-internet.org (Brad Knowles) wrote: :In article <brad-0510991348210001@brad.techos.skynet.be>, :brad@shub-internet.org (Brad Knowles) wrote: : :> I know that the routine is being put into the library and the binaries :> are being linked agains that library, but until I see one of those lines :> logged, I can't be sure that the program is actually using it. : : Sigh.... Stupid me, when I moved the routine, I didn't do an xmake :clean. So it was never really put in the library, and therefore wasn't :being called. When I finally did an xmake clean and then put the new set :of binaries into production, it locked up pretty fast. : : The man page for write(2) says that the second argument is a "const :void *", while all of the routines I can find that use it in Diablo :actually call it with a "const char *" or a "char *" in the second :argument. : : I'm going to try to do some more debugging and figure out if I can :find a proper cast for the second argument for xwrite(), one that won't :cause gcc to complain (too much), and one that hopefully won't cause those :signal 11's. I'm curious why you're even trying to do this. Most of Diablo is going to be writing to disk (which won't need xwrite) or is using Matt's buffered I/O library (which'll probably break if you use xwrite), and the only thing that xwrite was meant to fix was an assumption I made in diab-filter about IPC behaviour which may or may not be true. I'm actually tempted to go look at POSIX for more info. Solaris man pages for write(2) suggest that write is guaranteed to write the bytes, assuming neither O_NONBLOCK nor O_NDELAY are set on the fd. I've seen some other mildly supporting stuff... it might be more interesting just to play with the fd's mode to correct the behaviour. ... JG
Technical Details
Message-ID:
<37fa44dc$0$7740@news.execpc.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailReferences:
<brad-0110991517500001@brad.techos.skynet.be> <brad-0510991317560001@brad.techos.skynet.be> <brad-0510991348210001@brad.techos.skynet.be> <brad-0510991730300001@brad.techos.skynet.be>Show Full Headers
Complete Article Headers
Message-ID: <37fa44dc$0$7740@news.execpc.com> Subject: Re: Diablo debugging problems... Date: Tue, 05 Oct 1999 00:00:00 +0000 From: jgreco@ns.sol.net (Joe Greco) References: <brad-0110991517500001@brad.techos.skynet.be> <brad-0510991317560001@brad.techos.skynet.be> <brad-0510991348210001@brad.techos.skynet.be> <brad-0510991730300001@brad.techos.skynet.be> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 533175036 Sender: jgreco@earth.execpc.com X-Trace: S=T[4Gb?NP1I5[332>a9Y;bfNiaEHUgJ7RYcgIRLSUE=]@`T8EU2QX7^WXb\NQ6]M021Vkhja9226l=jlCRBl;334dTgmFn@Sh7 Organization: sol.net Network Services - Milwaukee, WI Newsgroups: news.software.nntp X-Complaints-To: abuse@execpc.com