this post was submitted on 04 Aug 2023
31 points (97.0% liked)

Linux

48145 readers
872 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

I asked on stackoverflow for my problem. And i will ask here too...

Does anybody know, what the problem could be?

you are viewing a single comment's thread
view the rest of the comments
[–] taladar@sh.itjust.works 1 points 1 year ago (1 children)

It is strange behaviour… a process unlinks a socket-file, which does not belong to him, only the name is the same

That is what I would expect it to do actually. I would expect it to close the socket it has open and the delete (unlink) it by name.

[–] jakob@lemmy.schuerz.at 1 points 1 year ago (1 children)

I expect, it deletes the socket, which on which the process is listening. what if i rename the socket (for some reason). Then the socketfile should be deleted also.

[–] taladar@sh.itjust.works 1 points 1 year ago

Directory operations like unlinking (deletion) traditionally work via paths, not open file handles.