GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Conversation

Notices

  1. Embed this notice
    The Penguin of Evil (etchedpixels@mastodon.social)'s status on Wednesday, 11-Dec-2024 09:55:48 JST The Penguin of Evil The Penguin of Evil

    Bizzare Unix semantics question. Given the parent of init is init (getppid(() of pid 1 is 1) is init the child of init, and if only init is running what is the correct return from wait(NULL);

    Believe it or not I actually found a case it matters in my Fuzix init today and having read various docs I'm really not sure what the answer is. ECHILD or blocking ?

    #unix #fuzix #retrocomputing

    In conversation about 5 months ago from mastodon.social permalink
    • Haelwenn /элвэн/ :triskell: likes this.
    • Embed this notice
      The Penguin of Evil (etchedpixels@mastodon.social)'s status on Wednesday, 11-Dec-2024 09:55:58 JST The Penguin of Evil The Penguin of Evil
      in reply to
      • Leah Neukirchen

      @leah Unix V7 seems to sleep.

      In conversation about 5 months ago permalink
      Haelwenn /элвэн/ :triskell: likes this.
    • Embed this notice
      Leah Neukirchen (leah@blahaj.social)'s status on Wednesday, 11-Dec-2024 09:55:59 JST Leah Neukirchen Leah Neukirchen
      in reply to

      @etchedpixels I doubt you find any system that doesn't return ECHILD?

      In conversation about 5 months ago permalink
    • Embed this notice
      Leah Neukirchen (leah@blahaj.social)'s status on Wednesday, 11-Dec-2024 09:56:30 JST Leah Neukirchen Leah Neukirchen
      in reply to

      @etchedpixels I think it changed in 4.3 when https://github.com/dspinellis/unix-history-repo/commit/baffb38b8143b1a9fb9b8f85315071b0931617fd introduced an explicit list of child processes, where pid 1 doesn't include itself.

      In conversation about 5 months ago permalink

      Attachments

      1. Domain not in remote thumbnail source whitelist: opengraph.githubassets.com
        linked lists of active, zombie and free procs; avoid linear proc · dspinellis/unix-history-repo@baffb38
        searches wherever possible SCCS-vsn: sys/kern/init_main.c 6.3 SCCS-vsn: sys/kern/kern_exit.c 6.2 SCCS-vsn: sys/kern/kern_fork.c 6.2 SCCS-vsn: sys/kern/kern_proc.c 6.2 SCCS-vsn: sys/kern/kern_resou...
      Haelwenn /элвэн/ :triskell: likes this.
    • Embed this notice
      The Penguin of Evil (etchedpixels@mastodon.social)'s status on Wednesday, 11-Dec-2024 09:56:31 JST The Penguin of Evil The Penguin of Evil
      in reply to
      • Leah Neukirchen

      @leah V7 has wait() only not waitpid(). The dozen other wait() with extras before waitpid() are all later things

      In conversation about 5 months ago permalink
    • Embed this notice
      Leah Neukirchen (leah@blahaj.social)'s status on Wednesday, 11-Dec-2024 09:56:31 JST Leah Neukirchen Leah Neukirchen
      in reply to

      @etchedpixels it sleeps indeed, the code is easy to check. I'm very sure Linux does not.

      In conversation about 5 months ago permalink
    • Embed this notice
      Leah Neukirchen (leah@blahaj.social)'s status on Wednesday, 11-Dec-2024 09:56:32 JST Leah Neukirchen Leah Neukirchen
      in reply to

      @etchedpixels does it have waitpid already? can you waitpid(1, &status, 0)?

      In conversation about 5 months ago permalink

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.