Ignore:
Timestamp:
Feb 28, 2009, 5:46:25 AM (16 years ago)
Author:
bird
Message:

kash: forking on widnows.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/src/kash/shinstance.c

    r2291 r2292  
    3939#endif
    4040#include "shinstance.h"
     41
     42#if K_OS == K_OS_WINDOWS
     43extern pid_t shfork_do_it(void); /* shforkA-win.asm */
     44#endif
    4145
    4246
     
    872876    pid = -1;
    873877
    874 #elif defined(SH_STUB_MODE) || defined(SH_FORKED_MODE)
    875 # ifdef _MSC_VER
    876 #  ifdef SH_FORKED_MODE
    877     /** @todo */
    878     *(char *)1 = 0x1;
    879 #  else
     878#elif K_OS == K_OS_WINDOWS //&& defined(SH_FORKED_MODE)
     879    pid = shfork_do_it();
     880
     881#elif defined(SH_STUB_MODE) || defined(SH_FORKED_MODE)
     882# ifdef _MSC_VER
    880883    pid = -1;
    881884    errno = ENOSYS;
    882 #  endif
    883885# else
    884886    pid = fork();
Note: See TracChangeset for help on using the changeset viewer.