Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8704143
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T03:01:32+00:00 2026-06-13T03:01:32+00:00

I have looked into the code of posix-spawn( https://github.com/rtomayko/posix-spawn ), it seems that it

  • 0

I have looked into the code of posix-spawn( https://github.com/rtomayko/posix-spawn), it seems that it uses vfork in the low level implementation.However, vfork is not encouraged to use in linux platform.Is it ok with posix-spawn module ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T03:01:33+00:00Added an answer on June 13, 2026 at 3:01 am

    vfork isn’t recommended because it heavily restricts what the new process can do (until it execs) and is consequently hard to use correctly. On Linux, fork uses copy-on-write semantics, so fork is going to be reasonably fast without needing to use vfork. Furthermore, vfork signal semantics are not at all standard across platforms. From man vfork:

    It is rather unfortunate that Linux revived this specter from the past. The BSD man page states:

    This system call will be eliminated when proper system sharing mechanisms are implemented. Users should not depend on the memory sharing semantics of vfork() as it will, in that case, be made synonymous to fork(2).

    Details of the signal handling are obscure and differ between systems. The BSD man page states:

    To avoid a possible deadlock situation, processes that are children in the middle of a vfork() are never sent SIGTTOU or SIGTTIN signals; rather, output or ioctls are allowed and input attempts result in an end-of-file indication.

    That said, if used properly, vfork can be useful, and it will be faster on many other platforms. Linux does support it, so provided the code doesn’t do anything that is restricted by vfork, it should be just fine on Linux.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Today, I have looked into HTML code of facebook.com, and found something like this:
Ok I have looked into this, and I'm not sure if anyone else has
First you should know I have looked into many questions and none of them
I have a modeling question related to profiles. Firstly, I have looked into using
I've looked into the API Demos and they have an example of the gallery
I have looked at many other threads that show how to use accelerometer values,
I have looked all over and cannot figure out why this code isn't working.
I have been in one competition before, and I have looked into another. But
I have looked into the documentation for dynamic objects but i wasn't able to
I have looked into google and stack over flow and read all the posts

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.