Newsgroups: fj.lang.perl
Path: galaxy.trc.rwcp.or.jp!coconuts.jaist!wnoc-tyo-news!sinfony-news01!news.kddnet.ad.jp!news.dvlp.kddnet.ad.jp!news.cs.ritsumei.ac.jp!odins-suita!chiba-ns!sakunami!yagi!news
From: "YOSHIFUJI, Hideaki" <sd96249@ec.ecei.tohoku.ac.jp>
Subject: Re: flock ni tuite.
X-Nntp-Posting-Host: eiw02.ec.ecei.tohoku.ac.jp
Content-Type: text/plain; charset=iso-2022-jp
Message-ID: <332F7937.1F5F@ec.ecei.tohoku.ac.jp>
Sender: news@ecei.tohoku.ac.jp
Reply-To: sd96249@ec.ecei.tohoku.ac.jp
Content-Transfer-Encoding: 7bit
Organization: Faculty of Engineering, Tohoku University, JAPAN
References: <5gncn1$1ho@deneb.vega.or.jp>
Mime-Version: 1.0
Date: Wed, 19 Mar 1997 05:27:19 GMT
X-Mailer: Mozilla 3.01 (Win95; I)
Lines: 27
Xref: galaxy.trc.rwcp.or.jp fj.lang.perl:1827
X-originally-archived-at: http://galaxy.rwcp.or.jp/text/cgi-bin/newsarticle2?ng=fj.lang.perl&nb=1827&hd=a
X-reformat-date: Mon, 18 Oct 2004 15:18:22 +0900
X-reformat-comment: Tabs were expanded into 4 column tabstops by the Galaxy's archiver. See http://katsu.watanabe.name/ancientfj/galaxy-format.html for more info.

$B5HF#1QL@!wElKLBg3XEE>p7O$G$9!#(B

Masatsugu Kawaguchi wrote:
> $B!!(Bflock$B$K$D$$$F65$($F2<$5$$!#(B
> $B!!%^%K%e%"%k$rFI$s$G$_$?$N$G$9$,!"0z?t$N0UL#$,$h$/J,$+$j$^$;$s!#(B
> $B!!#1HVL\$N0z?t$O%U%!%$%k%O%s%I%k$@$H;W$&$N$G$9$,!"#2HVL\$N0z?t$O2?(B
> $B$r0UL#$7$F$$$k$N$G$7$g$&$+!#(B

$B#2HVL\$N0z?t$G%m%C%/A`:n$r;X<($7$^$9!#(Bflock.2 manpage $B$r8+$m!"$H(B
$B=q$$$F$"$k$N$G8+$F$_$k$H!"(B

====$B$3$3$+$i(B====
A lock is applied by specifying an operation parameter LOCK_SH or 
LOCK_EX for a  shared or exclusive lock.  Additionally,  this may 
be ORed  with LOCK_NB  to make  the operation  non-blocking.   To
unlock an existing lock, the operation should be LOCK_UN.
====$B$3$3$^$G(B====

LOCK_EX $B$GB>$N%m%C%/$,2r$1$k$^$G(B flock $BFbIt$GBT$A!"%m%C%/$NI,MW$J(B
$B=hM}8e!"(BLOCK_UN $B$G%m%C%/$r30$9!"$H$$$&$N$,4pK\E*$J;H$$J}$+$H;W$$(B
$B$^$9!#(Bperlfunc manpage $B$b$=$&$J$C$F$$$^$;$s$+!)(B

-- 
$B5HF#1QL@(B (YOSHIFUJI, Hideaki)
Faculty of Engineering, Tohoku University, JAPAN

http://www.ec.ecei.tohoku.ac.jp/~sd96249/YoshifujiH/
