| Summary: | kdeinit_shutdown should wait for kdeinit to actually exit | ||
|---|---|---|---|
| Product: | [Unmaintained] kdelibs | Reporter: | Sune Vuorela <debian> | 
| Component: | general | Assignee: | Stephan Kulow <coolo> | 
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Debian testing | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| 
 
        
          Description
        
        
          Sune Vuorela
        
        
        
        
          2007-06-05 22:00:34 UTC
        
       
    SVN commit 671951 by thiago:
Make kdeinit4_shutdown wait for kdeinit4's exit.
Since kdeinit4 doesn't explicitly close the socket, it gets closed
when the program exits. So, this read_socket call returns when
kdeinit4 has finished.
BUG:146426
 M  +1 -0      wrapper.c  
--- trunk/KDE/kdelibs/kinit/wrapper.c #671950:671951
@@ -359,6 +359,7 @@
       header.cmd = LAUNCHER_TERMINATE_KDE;
       header.arg_length = 0;
       write_socket(sock, (char *) &header, sizeof(header));
+      read_socket(sock, (char *) &header, 1); /* wait for the socket to close */
       return 0;
    }
 
     |