about summary refs log tree commit homepage
path: root/ext/clogger_ext/clogger.c
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2016-07-28 00:06:46 +0000
committerEric Wong <e@80x24.org>2016-07-28 02:08:58 +0000
commit77e43e7803440af0cee9272fb00930664abe01aa (patch)
treee77258df750438ccd0ea6225ff1739e035bac2cc /ext/clogger_ext/clogger.c
parent489fdac7bed0750f09d65b6105cb0b70d7ccf61f (diff)
downloadclogger-77e43e7803440af0cee9272fb00930664abe01aa.tar.gz
These defines may cause incompatibilities if Ruby or other
system headers decide to clobber these.  It's also confusing to
override existing, well-known-and-standardized functions.
Diffstat (limited to 'ext/clogger_ext/clogger.c')
-rw-r--r--ext/clogger_ext/clogger.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/clogger_ext/clogger.c b/ext/clogger_ext/clogger.c
index 3db9235..f29cf26 100644
--- a/ext/clogger_ext/clogger.c
+++ b/ext/clogger_ext/clogger.c
@@ -243,7 +243,7 @@ static void write_full(int fd, const char *buf, size_t count)
         ssize_t r;
 
         while (count > 0) {
-                r = write(fd, buf, count);
+                r = nogvl_write(fd, buf, count);
 
                 if ((size_t)r == count) { /* overwhelmingly likely */
                         return;
@@ -993,7 +993,7 @@ static VALUE to_path(VALUE self)
         if (sscanf(cpath, "/dev/fd/%u", &devfd) == 1)
                 rv = fstat((int)devfd, &sb);
         else
-                rv = stat(cpath, &sb);
+                rv = nogvl_stat(cpath, &sb);
 
         /*
          * calling this method implies the web server will bypass