summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2012-08-06 04:11:14 +0000
committerCarsten Haitzler <raster@rasterman.com>2012-08-06 04:11:14 +0000
commit75696669c2a02600e70c15d2a921ad96fad2cc20 (patch)
tree983756da76e452f74153b8accb742be2f8579ba8 /src
parent2f851c1d0a0abf911d070010946cb4e7d3c4e63b (diff)
close tty fd before doing signal killing on shutdown.
SVN revision: 74894
Diffstat (limited to 'src')
-rw-r--r--src/bin/termpty.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/termpty.c b/src/bin/termpty.c
index 9de673d..f2a27de 100644
--- a/src/bin/termpty.c
+++ b/src/bin/termpty.c
@@ -358,6 +358,8 @@ err:
358void 358void
359termpty_free(Termpty *ty) 359termpty_free(Termpty *ty)
360{ 360{
361 if (ty->fd >= 0) close(ty->fd);
362 if (ty->slavefd >= 0) close(ty->slavefd);
361 if (ty->pid >= 0) 363 if (ty->pid >= 0)
362 { 364 {
363 int i; 365 int i;
@@ -397,8 +399,6 @@ termpty_free(Termpty *ty)
397 if (ty->hand_fd) ecore_main_fd_handler_del(ty->hand_fd); 399 if (ty->hand_fd) ecore_main_fd_handler_del(ty->hand_fd);
398 if (ty->prop.title) eina_stringshare_del(ty->prop.title); 400 if (ty->prop.title) eina_stringshare_del(ty->prop.title);
399 if (ty->prop.icon) eina_stringshare_del(ty->prop.icon); 401 if (ty->prop.icon) eina_stringshare_del(ty->prop.icon);
400 if (ty->fd >= 0) close(ty->fd);
401 if (ty->slavefd >= 0) close(ty->slavefd);
402 if (ty->back) 402 if (ty->back)
403 { 403 {
404 int i; 404 int i;