Changeset 1181


Ignore:
Timestamp:
2000-05-23T00:26:44+12:00 (24 years ago)
Author:
sjboddie
Message:

got end-user collection building to work (almost) on windows 95.
there's still a problem with the gsdl_system routine, at least when
using the apache webserver. I can't get the server to carry on with
running library.exe (and displaying building update pages) as it waits
until the spawned building process finishes first. It works on NT.

Location:
trunk/gsdl
Files:
1 added
3 edited

Legend:

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

    r1175 r1181  
    3232#   an already running cgi program.
    3333
    34 use Fcntl ':flock';
    3534use File::Basename;
    3635use GSDLHOME;
     36use gflock;
    3737
    3838my $args;
     
    6161    if (open(TMPOUT,">$full_tmpname"))
    6262    {
    63     if (flock(TMPOUT,LOCK_EX))
    64     {
     63    if (&gflock::lock (TMPOUT)) {
    6564        print TMPOUT $text;
    6665        close(TMPOUT);
    67         flock(TMPOUT,LOCK_UN);
    68     }
    69     else
    70     {
     66        &gflock::unlock (TMPOUT);
     67
     68    } else {
    7169        # Problem locking file
    7270        my $mess = "Unable to lock temporary communication file:";
     
    171169    }
    172170
    173     if ($copy_dir =~ /^no$/i)
     171    if ((defined $copy_dir) && ($copy_dir =~ /^no$/i))
    174172    {
    175173    # link it
  • trunk/gsdl/cgi-bin/webpage_editcol.pl

    r1145 r1181  
    3030use CGI;
    3131use GSDLHOME;
    32 use Fcntl ':flock';
     32use gflock;
    3333
    3434require util;
     
    7070    if (open(CFGOUT,">$cfg_filename"))
    7171    {
    72     if (flock(CFGOUT,LOCK_EX))
    73     {
     72    if (&gflock::lock (CFGOUT)) {
    7473        my $cfg_text = $args->{'bc1cfgfile'};
    7574        print CFGOUT "$cfg_text";
    76         flock(CFGOUT,LOCK_UN);
     75        &gflock::unlock (CFGOUT);
    7776        close(CFGOUT);
    7877    }
  • trunk/gsdl/cgi-bin/webpage_mkcol.pl

    r1175 r1181  
    3030use CGI;
    3131use GSDLHOME;
    32 use Fcntl ':flock';
     32use gflock;
    3333
    3434require util;
     
    179179        if (open(CFGAPP,">>$cfg_filename"))
    180180        {
    181         if (flock(CFGAPP,LOCK_EX))
    182         {
     181        if (&gflock::lock (CFGAPP)) {
    183182            print CFGAPP "\n";
    184183
     
    191190            print CFGAPP "building\tcopydir\t\t$copy_dir\n";
    192191            print CFGAPP "building\tingsdlarea\t$in_gsdl_area\n";
    193             flock(CFGAPP,LOCK_UN);
     192            &gflock::unlock (CFGAPP);
    194193            close(CFGAPP);
    195194        }
Note: See TracChangeset for help on using the changeset viewer.