Skip to main content
replaced http://unix.stackexchange.com/ with https://unix.stackexchange.com/
Source Link

I have a named fifo created from a C program like this:

res = mkfifo("/home/myfolder/myfifo", 0666);

after that there are only reads and writes.

Now, from this answer : Does a named pipe change the filesystemDoes a named pipe change the filesystem I concluded that the system should practically never actually write in the actual file on the filesystem, and that everything is handled in RAM.

Whenever I restart my program, the "mkfifo" line returns a "File already exists" error, which is OK.
What bothers me is that when I "ls" the file, the "last modified date time" sometimes does change. If the system never actually writes into the file, shouldn't it remain constant?

I have a named fifo created from a C program like this:

res = mkfifo("/home/myfolder/myfifo", 0666);

after that there are only reads and writes.

Now, from this answer : Does a named pipe change the filesystem I concluded that the system should practically never actually write in the actual file on the filesystem, and that everything is handled in RAM.

Whenever I restart my program, the "mkfifo" line returns a "File already exists" error, which is OK.
What bothers me is that when I "ls" the file, the "last modified date time" sometimes does change. If the system never actually writes into the file, shouldn't it remain constant?

I have a named fifo created from a C program like this:

res = mkfifo("/home/myfolder/myfifo", 0666);

after that there are only reads and writes.

Now, from this answer : Does a named pipe change the filesystem I concluded that the system should practically never actually write in the actual file on the filesystem, and that everything is handled in RAM.

Whenever I restart my program, the "mkfifo" line returns a "File already exists" error, which is OK.
What bothers me is that when I "ls" the file, the "last modified date time" sometimes does change. If the system never actually writes into the file, shouldn't it remain constant?

OP's C wouldn't even compile, presume it actually does.
Source Link
derobert
  • 113.2k
  • 20
  • 242
  • 289

I have a named fifo created from a C program like this:

mkfifo(/home/myfolder/myfifo)
res = mkfifo("/home/myfolder/myfifo", 0666);

after that there are only reads and writes.

Now, from this answer : Does a named pipe change the filesystem I concluded that the system should practically never actually write in the actual file on the filesystem, and that everything is handled in RAM.

Whenever I restart my program, the "mkfifo" line returns a "File already exists" error, which is OK.
What bothers me is that when I "ls" the file, the "last modified date time" sometimes does change. If the system never actually writes into the file, shouldn't it remain constant?

I have a named fifo created from a C program like this:

mkfifo(/home/myfolder/myfifo)

after that there are only reads and writes.

Now, from this answer : Does a named pipe change the filesystem I concluded that the system should practically never actually write in the actual file on the filesystem, and that everything is handled in RAM.

Whenever I restart my program, the "mkfifo" line returns a "File already exists" error, which is OK.
What bothers me is that when I "ls" the file, the "last modified date time" sometimes does change. If the system never actually writes into the file, shouldn't it remain constant?

I have a named fifo created from a C program like this:

res = mkfifo("/home/myfolder/myfifo", 0666);

after that there are only reads and writes.

Now, from this answer : Does a named pipe change the filesystem I concluded that the system should practically never actually write in the actual file on the filesystem, and that everything is handled in RAM.

Whenever I restart my program, the "mkfifo" line returns a "File already exists" error, which is OK.
What bothers me is that when I "ls" the file, the "last modified date time" sometimes does change. If the system never actually writes into the file, shouldn't it remain constant?

edited tags
Link
Gilles 'SO- stop being evil'
  • 865.5k
  • 205
  • 1.8k
  • 2.3k
Source Link
Nitkov
  • 163
  • 4
Loading