Forced commit to note details for the previous commit:
. Ownership of the temporary java_pid.XXXX file is checked before
attachment can proceed. Since /tmp is normally a sticky directory
(see sticky(8)), the group ownership of files created there don't
usually match the user's group. So chown the temporary file to
the user's user and group before the attachment occurs. This is
also the behaviour in openjdk6.