Ignore:
Timestamp:
Aug 14, 2019, 4:30:34 PM (5 years ago)
Author:
djay
Message:

Fix the issue with JavaScript? support and GDAL profile service

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/zoo-project/zoo-kernel/service_internal.c

    r921 r945  
    198198  int res=-1;
    199199  if(s!=NULL){
     200    int fcntlRes;
    200201    s->lock.l_type = F_UNLCK;
    201202    res=fcntl(fileno(s->lockfile), F_SETLK, &s->lock);
    202203    if(res==-1)
    203204      return res;
    204     fclose(s->lockfile);
    205205#ifndef WIN32
    206206    // Check if there is any process locking a file and delete the lock if not.
    207207    s->lock.l_type = F_WRLCK;
    208     if(fcntl(fileno(s->lockfile), F_GETLK, &s->lock)!=-1 && s->lock.l_type == F_UNLCK){
    209 #endif
     208    fcntlRes=fcntl(fileno(s->lockfile), F_GETLK, &s->lock);
     209    if(fcntlRes!=1 && s->lock.l_type == F_UNLCK){
     210#endif
     211      fclose(s->lockfile);
    210212      zUnlink(s->filename);
    211213#ifndef WIN32
Note: See TracChangeset for help on using the changeset viewer.

Search

Context Navigation

ZOO Sponsors

http://www.zoo-project.org/trac/chrome/site/img/geolabs-logo.pnghttp://www.zoo-project.org/trac/chrome/site/img/neogeo-logo.png http://www.zoo-project.org/trac/chrome/site/img/apptech-logo.png http://www.zoo-project.org/trac/chrome/site/img/3liz-logo.png http://www.zoo-project.org/trac/chrome/site/img/gateway-logo.png

Become a sponsor !

Knowledge partners

http://www.zoo-project.org/trac/chrome/site/img/ocu-logo.png http://www.zoo-project.org/trac/chrome/site/img/gucas-logo.png http://www.zoo-project.org/trac/chrome/site/img/polimi-logo.png http://www.zoo-project.org/trac/chrome/site/img/fem-logo.png http://www.zoo-project.org/trac/chrome/site/img/supsi-logo.png http://www.zoo-project.org/trac/chrome/site/img/cumtb-logo.png

Become a knowledge partner

Related links

http://zoo-project.org/img/ogclogo.png http://zoo-project.org/img/osgeologo.png