Changeset 1254:42feb2f88285 in roaraudio


Ignore:
Timestamp:
02/27/09 00:50:35 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

fixed bug in pinentry to not wait for the child

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • include/libroar/libroar.h

    r1232 r1254  
    4242#include <stdint.h> 
    4343 
     44#include <sys/wait.h> 
     45 
    4446#include <fcntl.h> 
    4547#ifndef ROAR_TARGET_WIN32 
  • libroar/pinentry.c

    r1237 r1254  
    127127 
    128128int roar_pinentry_close(struct roar_pinentry * pe) { 
     129 int status; 
     130 
    129131 if ( pe == NULL ) 
    130132  return -1; 
     
    141143 if ( pe->in  != -1 ) 
    142144  close(pe->in); 
     145 
     146 waitpid(pe->pid, &status, 0); 
    143147 
    144148 memset(pe, 0, sizeof(struct roar_pinentry)); 
Note: See TracChangeset for help on using the changeset viewer.