"Fossies" - the Fresh Open Source Software Archive

Member "webbind_0.98/locking.php" (5 Jan 2002, 144 Bytes) of package /linux/misc/dns/old/WeBBind_0.98.tar:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) PHP source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 <?
    2 
    3 function FileLock()
    4 {
    5  ignore_user_abort(true);
    6  $fl=fopen("/tmp/webbind.lock","a+");
    7  if ( $fl !=0 && flock($fl,2) ){
    8     return $fl ;
    9  }
   10 
   11 }
   12