/scripts/tests/fcntl_setfd_test.pl

https://code.google.com/p/camelbox/ · Perl · 9 lines · 3 code · 3 blank · 3 comment · 0 complexity · e80498f53a3615680cbc93b597a3d52f MD5 · raw file

  1. #!/usr/bin/env perl
  2. # test to validate the issue seen in
  3. # http://code.google.com/p/camelbox/issues/detail?id=3
  4. use Fcntl;
  5. open (TESTFILE, "> testfile.txt");
  6. fcntl(TESTFILE, &Fcntl::F_SETFD, &Fcntl::FD_CLOEXEC);