aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2009-02-16 13:44:41 +0000
committerThierry Vignaud <tv@mandriva.org>2009-02-16 13:44:41 +0000
commitf5cc84f7e48f72bff1f372ba033ba0540380f2f2 (patch)
tree0269d2d8cde3e3a5895c8e02910063c5ecc2f1bf
parent1037ba9adbe6277cbe7baa7612053ff386d964f5 (diff)
downloadrpmdrake-f5cc84f7e48f72bff1f372ba033ba0540380f2f2.tar
rpmdrake-f5cc84f7e48f72bff1f372ba033ba0540380f2f2.tar.gz
rpmdrake-f5cc84f7e48f72bff1f372ba033ba0540380f2f2.tar.bz2
rpmdrake-f5cc84f7e48f72bff1f372ba033ba0540380f2f2.tar.xz
rpmdrake-f5cc84f7e48f72bff1f372ba033ba0540380f2f2.zip
prevent running more than one instance (#47755)
-rw-r--r--NEWS1
-rwxr-xr-xrpmdrake4
2 files changed, 5 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 86a7457b..8418d703 100644
--- a/NEWS
+++ b/NEWS
@@ -1,6 +1,7 @@
- rpmdrake:
o add 'compute_updates' option that enable super fast startup by
skipping computing updates on startup (#42848)
+ o prevent running more than one instance (#47755)
Version 5.8 - 15 February 2009, Thierry Vignaud
diff --git a/rpmdrake b/rpmdrake
index 6407f7a3..430f76db 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -735,6 +735,10 @@ sub run_treeview_dialog {
# -=-=-=---=-=-=---=-=-=-- main -=-=-=---=-=-=---=-=-=-
+if (my $pid = is_running('rpmdrake')) {
+ die "rpmdrake is already running ($pid)\n";
+}
+
$w = ugtk2->new(N("Software Management"));
$w->{rwindow}->show_all if $::isEmbedded;