Red Hat Bugzilla – Bug 73497
unix domain file system entries cannot be removed after creation.
Last modified: 2008-05-01 11:38:03 EDT
Description of Problem:unix domain files system entries cannopt be rm'ed or unlinked.
Version-Release number of selected component (if applicable):
How Reproducible: we have a process that creates a unix domain listening socket (pathname i/tmp/LOGSOCKET). this process is invoked from a
initd script as su - <username> -c script/process. after this process creates this file system entry, it cannot be removed even by super user. if the
process is brought up from the command line (rather than through the initd script) it is not a problem. the process that creates LOGSOCKET first
attempts to unlink it (if it is there) so that after a boot it will work (/tmp is reset) and subsequent attempts fail. we can unlink the file within the
process when the process terminates, but if the process cores or is abnormally terminated, we can never remove the file upon subsequent
invocations of the process. i have attached some code that will create the unix domain socket.
Steps to Reproduce:
Created attachment 75064 [details]
unix domain socket creation.
Unable to reproduce in current Red Hat - or 7.2