diff options
-rw-r--r-- | MDK/Common/System.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/MDK/Common/System.pm b/MDK/Common/System.pm index c22120a..d5f7997 100644 --- a/MDK/Common/System.pm +++ b/MDK/Common/System.pm @@ -379,7 +379,9 @@ sub update_gnomekderc { sub fuzzy_pidofs { my ($regexp) = @_; - grep { /^(\d+)$/ && MDK::Common::File::cat_("/proc/$_/cmdline") =~ /$regexp/ } MDK::Common::File::all('/proc'); + grep { + /^(\d+)$/ && (MDK::Common::File::cat_("/proc/$_/cmdline") || readlink("/proc/$_/exe") || '') =~ /$regexp/; + } MDK::Common::File::all('/proc'); } 1; |