Changeset 1192


Ignore:
Timestamp:
2000-05-25T14:42:12+12:00 (24 years ago)
Author:
sjboddie
Message:

fixed a bug in the new file locking stuff

Location:
trunk/gsdl/cgi-bin
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/cgi-bin/webpage_buildcol.pl

    r1181 r1192  
    3131#  the more traditional command line argument.  The program is executed by
    3232#   an already running cgi program.
     33
     34package webpage_buildcol;
    3335
    3436use File::Basename;
     
    6163    if (open(TMPOUT,">$full_tmpname"))
    6264    {
    63     if (&gflock::lock (TMPOUT)) {
     65    if (&gflock::lock (webpage_buildcol::TMPOUT)) {
    6466        print TMPOUT $text;
    6567        close(TMPOUT);
    66         &gflock::unlock (TMPOUT);
     68        &gflock::unlock (webpage_buildcol::TMPOUT);
    6769
    6870    } else {
  • trunk/gsdl/cgi-bin/webpage_editcol.pl

    r1181 r1192  
    2727
    2828# This program is a webpage wrapper for saving an edited config file
     29
     30package webpage_editcol;
    2931
    3032use CGI;
     
    7072    if (open(CFGOUT,">$cfg_filename"))
    7173    {
    72     if (&gflock::lock (CFGOUT)) {
     74    if (&gflock::lock (webpage_editcol::CFGOUT)) {
    7375        my $cfg_text = $args->{'bc1cfgfile'};
    7476        print CFGOUT "$cfg_text";
    75         &gflock::unlock (CFGOUT);
     77        &gflock::unlock (webpage_editcol::CFGOUT);
    7678        close(CFGOUT);
    7779    }
  • trunk/gsdl/cgi-bin/webpage_mkcol.pl

    r1181 r1192  
    2727
    2828# This program is a webpage wrapper to the mkcol.pl process
     29
     30package webpage_mkcol;
    2931
    3032use CGI;
     
    179181        if (open(CFGAPP,">>$cfg_filename"))
    180182        {
    181         if (&gflock::lock (CFGAPP)) {
     183        if (&gflock::lock (webpage_mkcol::CFGAPP)) {
    182184            print CFGAPP "\n";
    183185
     
    190192            print CFGAPP "building\tcopydir\t\t$copy_dir\n";
    191193            print CFGAPP "building\tingsdlarea\t$in_gsdl_area\n";
    192             &gflock::unlock (CFGAPP);
     194            &gflock::unlock (webpage_mkcol::CFGAPP);
    193195            close(CFGAPP);
    194196        }
Note: See TracChangeset for help on using the changeset viewer.