Revision: 14595
Author: [email protected]
Date: Sun Apr 11 23:27:40 2010
Log: * Use sqinet_copy() rather than just copying a structure
* Enable #if 0 outed code by using a sleep_after_fork argument
http://code.google.com/p/lusca-cache/source/detail?r=14595

Modified:
 /branches/LUSCA_HEAD/libhelper/ipc_win32.c

=======================================
--- /branches/LUSCA_HEAD/libhelper/ipc_win32.c  Sun Apr 11 17:32:53 2010
+++ /branches/LUSCA_HEAD/libhelper/ipc_win32.c  Sun Apr 11 23:27:40 2010
@@ -252,7 +252,7 @@
     params.type = type;
     params.crfd = crfd;
     params.cwfd = cwfd;
-    params.PS = PS;
+    sqinet_copy(&params.PS, &PS);
     params.prog = prog;
     params.args = (char **) args;

@@ -336,16 +336,14 @@
     fd_table[crfd].flags.ipc = 1;
     fd_table[cwfd].flags.ipc = 1;

-#if 0 /* FIXME: We can't use Config here! */
-    if (Config.sleep_after_fork) {
+    if (sleep_after_fork) {
        /* XXX emulation of usleep() */
        DWORD sl;
-       sl = Config.sleep_after_fork / 1000;
+       sl = sleep_after_fork / 1000;
        if (sl == 0)
            sl = 1;
        Sleep(sl);
     }
-#endif
if (GetExitCodeThread((HANDLE) thread, &ecode) && ecode == STILL_ACTIVE) {
        if (hIpc)
            *hIpc = (HANDLE) thread;

--
You received this message because you are subscribed to the Google Groups 
"lusca-commit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/lusca-commit?hl=en.

Reply via email to