mirror of
https://github.com/moparisthebest/socat
synced 2024-11-04 16:25:09 -05:00
removed END_UNLINK (not yet needed)
This commit is contained in:
parent
30a3ec3baa
commit
04cfeb2ad8
2
xio.h
2
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 */
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user