ethercat/lib
Per Noergaard Christensen 38038f6a48 lib: use O_CLOEXEC flag when opening EtherCAT master device
This flag specifies that the file descriptor should be closed when an
exec function is invoked. When a file descriptor is allocated (as with
open or dup), O_CLOEXEC bit is initially cleared on the new file
descriptor, meaning that descriptor will survive into the new program
after exec. Setting O_CLOEXEC avoid this survival of the desciptor in
the new program. And setting it at open() time is the only race-free
way to avoid accidentally leaking the fd via other threads that
concurrently do fork()+exec() (or similar, e.g. posix_spawn).
2022-08-30 14:39:32 +02:00
..
Makefile.am Merge branch 'fix_cmake' (also) into stable. 2022-03-04 10:12:12 +01:00
common.c lib: use O_CLOEXEC flag when opening EtherCAT master device 2022-08-30 14:39:32 +02:00
domain.c Applied 0007-replace-fprintf-calls-with-EC_PRINT_ERR.patch 2022-06-23 10:31:41 +02:00
domain.h Reverted default branch to stable-1.5. 2014-11-03 15:20:05 +01:00
ethercat-config.cmake.in Merge branch 'fix_cmake' (also) into stable. 2022-03-04 10:12:12 +01:00
ioctl.h Applied 0007-replace-fprintf-calls-with-EC_PRINT_ERR.patch 2022-06-23 10:31:41 +02:00
libethercat.pc.in Add .pc file for ethercat lib 2021-08-24 17:19:43 +02:00
master.c Applied 0011-Reduced-printing-to-avoid-syslog-spam.patch 2022-06-23 10:55:57 +02:00
master.h Applied 0008-read-reference-slave-clock-64bit-time.patch 2022-06-23 10:45:16 +02:00
reg_request.c Applied 0007-replace-fprintf-calls-with-EC_PRINT_ERR.patch 2022-06-23 10:31:41 +02:00
reg_request.h Reverted default branch to stable-1.5. 2014-11-03 15:20:05 +01:00
sdo_request.c Applied 0007-replace-fprintf-calls-with-EC_PRINT_ERR.patch 2022-06-23 10:31:41 +02:00
sdo_request.h Reverted default branch to stable-1.5. 2014-11-03 15:20:05 +01:00
slave_config.c Applied 0007-replace-fprintf-calls-with-EC_PRINT_ERR.patch 2022-06-23 10:31:41 +02:00
slave_config.h Reverted default branch to stable-1.5. 2014-11-03 15:20:05 +01:00
voe_handler.c Applied 0007-replace-fprintf-calls-with-EC_PRINT_ERR.patch 2022-06-23 10:31:41 +02:00
voe_handler.h Reverted default branch to stable-1.5. 2014-11-03 15:20:05 +01:00