~ubuntu-branches/ubuntu/vivid/ettercap/vivid-proposed

« back to all changes in this revision

Viewing changes to src/ec_socket.c

  • Committer: Package Import Robot
  • Author(s): Barak A. Pearlmutter
  • Date: 2013-01-04 18:16:56 UTC
  • mfrom: (1.1.8)
  • Revision ID: package-import@ubuntu.com-20130104181656-cwrnpihky3eauthj
Tags: 1:0.7.5.1-1
* update patches
* new upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
    along with this program; if not, write to the Free Software
18
18
    Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19
19
 
20
 
    $Id: ec_socket.c,v 1.15 2004/08/10 23:35:35 alor Exp $
21
20
*/
22
21
 
23
22
#include <ec.h>
66
65
      ret |= O_NONBLOCK;
67
66
   
68
67
   /* set the flag */
69
 
   fcntl (s, F_SETFL, ret);
 
68
//   fcntl (s, F_SETFL, F_SETFD, FD_CLOEXEC, ret); //this solution BREAKS the socket (ssl mitm will not work)
 
69
   fcntl(s, F_SETFL, ret);
 
70
 
70
71
#endif   
71
72
}
72
73