goodking
goodking

Reputation: 145

Application calls old source functions

There is an application on remote machine with Linux OS(Fedora), writing to the log file when certain events occur. Some time ago I changed format of the message being written to the log file. But recently it turned out that for some reason in some seldom cases log files with old format messages appear there. I know for sure that none part of my code can write such strings. Also there is no instance of the old application running. Does anyone have some ideas why it can happen? It's not possible to check which process writes those files because anything like auditctl is not installed there, and neither package manager or yum to get it or install. Application is written in C language.

Upvotes: 0

Views: 39

Answers (1)

Arpit Aggarwal
Arpit Aggarwal

Reputation: 861

you can use fuser command to find out all the processes that are using that file

`fuser file.log`

Upvotes: 1

Related Questions