diff options
| author | Chris Rankin <rankincj@yahoo.com> | 2011-10-03 21:27:57 +0100 |
|---|---|---|
| committer | Chris Rankin <rankincj@yahoo.com> | 2011-10-03 21:27:57 +0100 |
| commit | 7a585790118e837ec788ac9b3e4cf6a381c61234 (patch) | |
| tree | 9d60c2cce1518d75c9b0bd1bc31e278e74cc7f3f /src/input | |
| parent | a39a950269d165f18448cc7d6da691bf14b9e03b (diff) | |
| download | xine-lib-7a585790118e837ec788ac9b3e4cf6a381c61234.tar.gz xine-lib-7a585790118e837ec788ac9b3e4cf6a381c61234.tar.bz2 | |
Set CLOEXEC flag on three more sockets.
There are two functions that actually set this flag:
int _x_set_file_close_on_exec()
int _x_set_socket_close_on_exec()
(We need two functions because file descriptors and sockets
are not the same under WIN32 - of course).
These function belong to libxine's internal API, i.e. they are
not available for use by plugins.
Diffstat (limited to 'src/input')
| -rw-r--r-- | src/input/input_rtp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/input/input_rtp.c b/src/input/input_rtp.c index 175c61b41..c62c4ce9b 100644 --- a/src/input/input_rtp.c +++ b/src/input/input_rtp.c @@ -171,7 +171,7 @@ typedef struct { static int host_connect_attempt(struct in_addr ia, int port, const char *interface, xine_t *xine) { - int s=socket(PF_INET, SOCK_DGRAM, IPPROTO_UDP); + int s = xine_socket_cloexec(PF_INET, SOCK_DGRAM, IPPROTO_UDP); union { struct sockaddr_in in; struct sockaddr sa; @@ -180,7 +180,7 @@ static int host_connect_attempt(struct in_addr ia, int port, int multicast = 0; /* boolean, assume unicast */ if(s == -1) { - LOG_MSG(xine, _("socket(): %s.\n"), strerror(errno)); + LOG_MSG(xine, _("xine_socket_cloexec(): %s.\n"), strerror(errno)); return -1; } |
