[UNIX] Simplify the file descriptor handling in SharedMemory
[WebKit-https.git] / Source / WebKit2 / Platform / IPC / Connection.h
index 490316e..c6803bf 100644 (file)
@@ -129,7 +129,7 @@ public:
     pid_t remoteProcessID() const;
 #elif USE(UNIX_DOMAIN_SOCKETS)
     typedef int Identifier;
-    static bool identifierIsNull(Identifier identifier) { return !identifier; }
+    static bool identifierIsNull(Identifier identifier) { return identifier == -1; }
 
     struct SocketPair {
         int client;