diff options
-rwxr-xr-x | mdkapplet | 8 |
1 files changed, 0 insertions, 8 deletions
@@ -294,14 +294,6 @@ sub compareWithInstalled { } $isUpdate; } -sub is_running { - my ($name) = @_; - any { - my ($ppid, $pid, $n) = /^\s*(\d+)\s+(\d+)\s+(.*)/; - #- to run ps, perl may create some process with $name as name and 1 as ppid - $ppid != 1 && $pid != $$ && $n eq $name; - } `ps -o '%P %p %c' -u $ENV{USER}`; -} sub cronUpdate { Glib::Timeout->add(10*1000, sub { checkConfig(); |