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.

File:
1 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
Note: See TracChangeset for help on using the changeset viewer.