• [^] # Re: SUA/Interix documentation API NT

    Posté par . En réponse à la dépêche Windows 8, Windows Server 2012 et Windows Phone 8. Évalué à 2.

    En même temps, pourquoi implémenter fork()?
    fork() a l'air propre, mais ça devient un sac de noeuds quand il y a plusieurs threads. Comme le dit POSIX :

    « If a multi-threaded process calls fork(), the new process shall contain a replica of the calling thread and its entire address space, possibly including the states of mutexes and other resources. Consequently, to avoid errors, the child process may only execute async-signal-safe operations until such time as one of the exec functions is called. Fork handlers may be established by means of the pthread_atfork() function in order to maintain application invariants across fork() calls. »