[Adium-devl] Crash in adium_input_get_error()
Graham Booker
gbooker at cod3r.com
Fri May 18 02:57:19 UTC 2007
On May 17, 2007, at 8:17 PM, Ryan Govostes wrote:
> Telling Adium to ignore SIGPIPEs didn't fix the problem (strange,
> since I was almost certain that was it).
>
GDB will still break on SIGPIPE (get annoying when debugging sockets
in libpurple). My question is does it still quit when running
outside of GDB?
> If I print errno at the time of the signal, I get 36, which is
>
> /* non-blocking and interrupt i/o */
> #define EAGAIN 35 /* Resource temporarily
> unavailable */
> #define EWOULDBLOCK EAGAIN /* Operation would block */
> #define EINPROGRESS 36 /* Operation now in
> progress */
> #define EALREADY 37 /* Operation already in
> progress */
>
> (But GDB is also kind of flaky when printing it, so maybe I'm doing
> it wrong... p/d (int)errno ?)
>
Perhaps errno needs to be printed after the write function has
finished executing? Not sure about this one, just a guess.
> Regards,
> Ryan Govostes
- Graham
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 1603 bytes
Desc: not available
URL: <http://adium.im/pipermail/devel_adium.im/attachments/20070517/f1b22126/attachment.p7s>
More information about the devel
mailing list