/*
- * Copyright (C) 2009 Thadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
+ * Copyright (C) 2009 Thadeu Lima de Souza Cascardo <cascardo@minaslivre.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
{
event = HC_EVENT_CLOSE;
}
+ else if (r == -1)
+ {
+ /* FIXME: create HC_EVENT_ERROR */
+ event = HC_EVENT_CLOSE;
+ }
}
else if (cond & G_IO_HUP)
{