diff --git a/xio.h b/xio.h index 653708a..2110896 100644 --- a/xio.h +++ b/xio.h @@ -158,7 +158,6 @@ typedef struct single { END_NONE, /* no action */ END_CLOSE, /* close() */ END_SHUTDOWN, /* shutdown() */ - END_UNLINK, /* unlink() */ END_KILL, /* has subprocess */ END_CLOSE_KILL, /* first close fd, then kill subprocess */ END_SHUTDOWN_KILL /* first shutdown fd, then kill subprocess */ @@ -171,7 +170,6 @@ typedef struct single { bool ttyvalid; /* the following struct is valid */ struct termios savetty; /* save orig tty settings for later restore */ #endif /* WITH_TERMIOS */ - const char *name; /* only with END_UNLINK */ int (*sigchild)(struct single *); /* callback after sigchild */ pid_t ppid; /* parent pid, only if we send it signals */ int escape; /* escape character; -1 for no escape */ diff --git a/xioclose.c b/xioclose.c index e08666b..3109f98 100644 --- a/xioclose.c +++ b/xioclose.c @@ -1,5 +1,5 @@ /* source: xioclose.c */ -/* Copyright Gerhard Rieger 2001-2008 */ +/* Copyright Gerhard Rieger 2001-2009 */ /* Published under the GNU General Public License V.2, see file COPYING */ /* this is the source of the extended close function */ @@ -72,9 +72,6 @@ int xioclose1(struct single *pipe) { Info3("shutdown(%d, %d): %s", pipe->fd, 2, strerror(errno)); } break; #endif /* _WITH_SOCKET */ - case END_UNLINK: if (Unlink((const char *)pipe->name) < 0) { - Warn2("unlink(\"%s\"): %s", pipe->name, strerror(errno)); } - break; case END_NONE: default: break; } }