Changeset 2525

Show
Ignore:
Timestamp:
09/23/07 15:41:17 (1 year ago)
Author:
dgollub
Message:

Close the read and write end of the pipes. This is needed to get a HUP
signal when then osync_client_proxy_shutdown() tries to close a
OSyncClient with the OSyncStartType OSYNC_START_TYPE_PROCESS (osplugin).
This fix the issue that the osplugin process never stops polling during
the finalize call.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/opensync/client/opensync_client_proxy.c

    r2511 r2525  
    838838                                pid_t cpid = fork(); 
    839839                                if (cpid == 0) { 
     840 
     841                                        /* close the read and write ends of the pipes */ 
     842                                        osync_queue_disconnect(write1, error); 
     843                                        osync_queue_disconnect(read2, error); 
     844 
    840845                                        osync_trace_reset_indent(); 
    841846 
     
    856861                                        osync_trace(TRACE_INTERNAL, "unable to exec"); 
    857862                                        exit(1); 
     863                                } else { 
     864                                        /* close the read and write ends of the pipes */ 
     865                                        osync_queue_disconnect(write2, error); 
     866                                        osync_queue_disconnect(read1, error); 
    858867                                } 
    859868