Created
October 26, 2022 18:15
-
-
Save defanator/712ee09b2a4053e210cea4b097897e5d to your computer and use it in GitHub Desktop.
find services using deleted libraries
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
PIDS=$(ps h --ppid 2 -p 2 --deselect | awk '{ print $1}' | xargs) | |
for P in $PIDS | |
do | |
lsof -p $P | grep DEL | egrep -v "/dev/|/\[aio\]|/SYSV|/memfd:" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment