Changeset 2675
- Timestamp:
- 02/09/08 01:27:46 (10 months ago)
- Files:
-
- trunk/src/rpm-fake.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/rpm-fake.c
r2665 r2675 97 97 static bool is_initialized = false; 98 98 99 static bool ctx_created = false; 100 99 101 //DECLARE(rpm_execcon); 100 102 //DECLARE(execv); … … 271 273 xid = rc; 272 274 res = true; 275 ctx_created = true; 273 276 } 274 277 } … … 511 514 if (read(sync_sock, &c, 1)!=1) { /*...*/ } 512 515 if (write(pw_sock, "Q", 1)!=1) { /*...*/ } 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) { /*...*/} 516 if (ctx_created) { 517 if (vc_isSupported(vcFEATURE_VWAIT)) { 518 if (vc_wait_exit(ctx)==-1) { /*...*/ } 519 } 520 else { 521 /* this can race */ 522 if (read(sync_sock, &c, 1)!=0) { /*...*/} 523 } 519 524 } 520 525 }
