Index: /trunk/src/VBox/Additions/x11/Installer/98vboxadd-xclient
===================================================================
--- /trunk/src/VBox/Additions/x11/Installer/98vboxadd-xclient	(revision 23644)
+++ /trunk/src/VBox/Additions/x11/Installer/98vboxadd-xclient	(revision 23645)
@@ -18,4 +18,13 @@
 #
 
+# It can happen that pidfiles from a sudo session can land in the user's
+# home directory and prevent new ones from being created.  This is not really
+# our fault, but the user may not quite appreciate that...
+for i in $HOME/.vboxclient-*.pid; do
+  if test -r $i && ! ps -e | grep `cat $i`; then
+    rm -f $i
+  fi
+done
+
 /usr/bin/VBoxClient --clipboard
 /usr/bin/VBoxClient --display
