]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
Make ply_trace restore errno appropriately
authorRay Strode <rstrode@redhat.com>
Sun, 21 Oct 2007 22:24:08 +0000 (18:24 -0400)
committerRay Strode <rstrode@redhat.com>
Sun, 21 Oct 2007 22:24:08 +0000 (18:24 -0400)
src/libply/ply-logger.h

index ad622368e1940c1d702ca7a70a30c091ae655bc5..eca2fbfbdd8d6d01c43f55d3aa52a1a8a0eb74fc 100644 (file)
@@ -87,6 +87,7 @@ do                                                                             \
                            "|pid: %d| <%.4f> [%s] %45.45s:" format "\n",       \
                            _pid, _timestamp, __FILE__, __func__, ##args);      \
         ply_logger_flush (logger);                                             \
+        errno = _old_errno;                                                    \
       }                                                                        \
   }                                                                            \
 while (0)