mirror of
https://github.com/felt/tippecanoe.git
synced 2026-10-02 08:25:40 +02:00
Set close-on-exec flag for most file descriptors
This commit is contained in:
+1
-1
@@ -78,7 +78,7 @@ void decode(char *fname, int z, unsigned x, unsigned y) {
|
||||
int oz = z;
|
||||
unsigned ox = x, oy = y;
|
||||
|
||||
int fd = open(fname, O_RDONLY);
|
||||
int fd = open(fname, O_RDONLY | O_CLOEXEC);
|
||||
if (fd >= 0) {
|
||||
struct stat st;
|
||||
if (fstat(fd, &st) == 0) {
|
||||
|
||||
Reference in New Issue
Block a user