bug-diffutils
[Top][All Lists]
Advanced

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

[bug-diffutils] bug#19509: bug#19509: [PATCH] diff: treat fifos as ident


From: Ondřej Svoboda
Subject: [bug-diffutils] bug#19509: bug#19509: [PATCH] diff: treat fifos as identical
Date: Thu, 12 Feb 2015 00:37:22 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0

I also posed this question to myself -- how can we tell two fifos apart? Do they by any chance store e.g. a file descriptor when they are being used?

I am not aware of any comparison done to fifos but I may as well be wrong.

On 12.2.2015 00:30, Paul Eggert wrote:
Ondřej Svoboda wrote:
      }
+      else if (S_ISFIFO (cmp.file[0].stat.st_mode)
+               && S_ISFIFO (cmp.file[0].stat.st_mode))
+    {
+      /* Both are fifos.  */
+    }

If they're the *same* fifo, they should compare the same (and already do, if I'm not mistaken). But if they're *different* fifos?







reply via email to

[Prev in Thread] Current Thread [Next in Thread]