Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library

Comment by olliej

4 years ago

You're after posix_spawn(2) :D

2 comments

olliej

Reply

modshatereality  4 years ago

I don't think i've ever seen posix_spawn(3) in a serious project. Maybe on a small embedded system lacking MMU support?

  • ncmncm  4 years ago

    On Linux machines it is probably implemented with vfork + exec.

    But the GP joke is (I guess) in suggesting by the "(2)" that it should be a system call, and not a library function that composes system calls.

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities