close tty fd before doing signal killing on shutdown.

SVN revision: 74894
This commit is contained in:
Carsten Haitzler 2012-08-06 04:11:14 +00:00
parent 2f851c1d0a
commit 75696669c2
1 changed files with 2 additions and 2 deletions

View File

@ -358,6 +358,8 @@ err:
void
termpty_free(Termpty *ty)
{
if (ty->fd >= 0) close(ty->fd);
if (ty->slavefd >= 0) close(ty->slavefd);
if (ty->pid >= 0)
{
int i;
@ -397,8 +399,6 @@ termpty_free(Termpty *ty)
if (ty->hand_fd) ecore_main_fd_handler_del(ty->hand_fd);
if (ty->prop.title) eina_stringshare_del(ty->prop.title);
if (ty->prop.icon) eina_stringshare_del(ty->prop.icon);
if (ty->fd >= 0) close(ty->fd);
if (ty->slavefd >= 0) close(ty->slavefd);
if (ty->back)
{
int i;