[vte] Replace EBADFD with EBADF



commit 1e564f955fef9c82bc59e399f9dcd53ea2b72cac
Author: Ting-Wei Lan <lantw src gnome org>
Date:   Wed Dec 9 01:21:26 2015 +0800

    Replace EBADFD with EBADF
    
    Using EBADF is more portable and correct because EBADFD means a file
    descriptor in bad state, not an invalid file descriptor.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=759197

 src/pty.cc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/pty.cc b/src/pty.cc
index 2a00481..28d2c6d 100644
--- a/src/pty.cc
+++ b/src/pty.cc
@@ -666,7 +666,7 @@ _vte_pty_open_foreign(int masterfd /* consumed */)
 {
         vte::util::smart_fd fd(masterfd);
         if (fd == -1) {
-                errno = EBADFD;
+                errno = EBADF;
                 return -1;
         }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]