Codebase list kali-menu / debian/1.338
Create /run/lock when needed. Raphaël Hertzog 11 years ago
2 changed file(s) with 7 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
0 kali-menu (1.338) kali; urgency=low
1
2 * Create /run/lock when needed.
3
4 -- Raphaël Hertzog <[email protected]> Tue, 23 Apr 2013 11:03:54 +0200
5
06 kali-menu (1.337) kali; urgency=low
17
28 * Create /var/lock when needed.
176176
177177 sub get_lock {
178178 my $lockfile = KALI_MENU_LOCKFILE;
179 system("mkdir -p /var/lock; touch $lockfile") unless -e $lockfile;
179 system("mkdir -p /run/lock /var/lock; touch $lockfile") unless -e $lockfile;
180180 open my $fh, '>>', $lockfile or syserr("Can't open %s", $lockfile);
181181 my $fs = new File::FcntlLock l_type => F_WRLCK;
182182 if (not $fs->lock($fh, F_SETLK)) {