[Adium-devl] g_string_free() and me (aka gaim [17165] doesn't like Adium)
Peter Hosey
prh at boredzo.org
Mon Sep 11 06:49:56 UTC 2006
On Sep 10, 2006, at 23:30:23, Mark Doliner wrote:
> 0 is a valid file descriptor, but it's pretty much ALWAYS stdin,
> stdout or stderr, and I don't think file descriptors are reused.
They are.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fd.tbz
Type: application/octet-stream
Size: 410 bytes
Desc: not available
URL: <http://adium.im/pipermail/devel_adium.im/attachments/20060910/8456268d/attachment.obj>
-------------- next part --------------
> make %/Volumes/
> RAM Disk/fd(0)
> cc -std=c99 -c -o fd.o fd.c
> cc fd.o -o fd
> ___
> ./fd hello-mark-doliner.txt %/Volumes/
> RAM Disk/fd(0)
> ___
> cat hello-mark-doliner.txt %/Volumes/
> RAM Disk/fd(0)
> hello Mark Doliner
(Though the wisdom of assuming that the stdout stream will DTRT when
the exact definition of fd 1 changes out from under it is debatable.
Also, the same principle applies to stdin, stderr, and every other FD.)
BTW, the standard FDs are stdin, stdout, and stderr, in that order.
And the EBADF Evan pasted would be caused by trying to write
(kCFSocketWriteCallBack, although I would expect that to use send
rather than write) to stdin (source=0).
Any idea what that ioFunction is? I certainly can't find anything
called socket_ready_cb anywhere in the libgaim or Gaim Plugin sources.
________________________________
\ Peter Hosey / prh at boredzo.org
PGP public key ID: 7AB26BAD (since 2006-01-01)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
URL: <http://adium.im/pipermail/devel_adium.im/attachments/20060910/8456268d/attachment.sig>
More information about the devel
mailing list