Changeset 2665

Show
Ignore:
Timestamp:
01/20/08 09:01:17 (10 months ago)
Author:
dhozac
Message:

Hopefully this will make it bullet-proof.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/rpm-fake.c

    r2655 r2665  
    511511    if (read(sync_sock, &c, 1)!=1) { /*...*/ } 
    512512    if (write(pw_sock, "Q", 1)!=1) { /*...*/ } 
    513     /* sync_sock should return EOF when the resolver exits... */ 
    514     if (read(sync_sock, &c, 1)!=0) { /*...*/ } 
     513    if (vc_isSupported(vcFEATURE_VWAIT)) { 
     514      if (vc_wait_exit(ctx)==-1) { /*...*/ } 
     515    } 
     516    else { 
     517      /* this can race */ 
     518      if (read(sync_sock, &c, 1)!=0) { /*...*/} 
     519    } 
    515520  } 
    516521}