/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
- #!/usr/bin/env perl
-
- # test to validate the issue seen in
- # http://code.google.com/p/camelbox/issues/detail?id=3
-
- use Fcntl;
-
- open (TESTFILE, "> testfile.txt");
- fcntl(TESTFILE, &Fcntl::F_SETFD, &Fcntl::FD_CLOEXEC);