Archive for the ‘ Administration ’ Category

Avoid race condition for file creation

race condition in the common lock on file? – Stack Overflow.

A possible solution to this is to use IO redirection and bash’s noclobber mode, which won’t redirect to an existing file. We can use something similar to:

if ( set -o noclobber; echo "$$" > "$lockfile") 2> /dev/null;
then
   # BK: this will cause the lock file to be deleted in case of other exit
   trap 'rm -f "$lockfile"; exit $?' INT TERM EXIT

   # critical-section BK: (the protected bit)

   rm -f "$lockfile"
   trap - INT TERM EXIT
else
   echo "Failed to acquire lockfile: $lockfile."
   echo "Held by $(cat $lockfile)"
fi

Adobe Labs: Flash Player “Square” Preview Release

Adobe Labs – Downloads: Flash Player “Square” Preview Release.

Flash Player “Square” Preview Release

This page contains download information for the developer preview release of Adobe® Flash® Player “Square” (codename). Flash Player “Square” enables 64-bit and enhanced Internet Explorer 9 support. Release versions of Flash Player 10.1 are available from the Flash Player Download Center on Adobe.com.

Learn more about Flash Player “Square”

By downloading the software listed below, I acknowledge that I have read and agreed to the terms of the Flash Player “Square” License, the Adobe.com Terms of Use and the Adobe Online Privacy Policy.

Flash Player “Square”

Version Preview 2
Date Sep 27, 2010

The following downloads provide the Flash Player “Square” installers for Linux, Mac and Windows operating systems. This preview release is designed for evaluation purposes only. We do not recommended that this release be used on production systems or for any mission-critical work.

Important: Please note that if you install the Flash Player “Square” preview, you will need to keep this version up to date by manually installing updates from the Flash Player “Square” download page on Adobe Labs. You will not receive automatic update notifications for future final releases of Flash Player, and you will need to manually uninstall Flash Player “Square” before installing a final shipping version of Flash Player.

Amazon Linux AMI – what distro

Re: Amazon Linux AMI – what distro is this based on?

The Amazon Linux AMI is based on RHEL 5.x and parts of RHEL6. One of our goals is binary compatibility with RHEL 5.x, and therefore CentOS5.x. Astute users will note that our kernel is based on 2.6.34, and we have engineered the image to conform to a cloud environment. For example, the lack of Xorg support helps to keep the images small and lean. The goal of the Amazon Linux AMI is to provide an image for use in the cloud and to serve as reference image of EC2 best practices. The maintenance (security, enhancements, features and bug fixes) for the image will come directly from Amazon, while maintaining maximum compatibility, security and functionality.

via Amazon Web Services Developer Community : Amazon Linux AMI – what distro is this ….