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 7167803
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T14:39:02+00:00 2026-05-28T14:39:02+00:00

I indeed to use wait3() . I have been looking what exactly is status/stat_loc

  • 0

I indeed to use wait3(). I have been looking what exactly is status/stat_loc but I couldn’t find it anywhere.

Any explanation is greatly appreciated!

  • 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-05-28T14:39:04+00:00Added an answer on May 28, 2026 at 2:39 pm

    man wait explains the semantics of status:

       If status is not NULL, wait() and waitpid() store status information in
       the  int  to  which  it points.  This integer can be inspected with the
       following macros (which take the integer itself as an argument,  not  a
       pointer to it, as is done in wait() and waitpid()!):
    
       WIFEXITED(status)
              returns true if the child terminated normally, that is, by call‐
              ing exit(3) or _exit(2), or by returning from main().
    
       WEXITSTATUS(status)
              returns the exit status of the  child.   This  consists  of  the
              least  significant  8 bits of the status argument that the child
              specified in a call to exit(3) or _exit(2) or  as  the  argument
              for  a  return  statement  in main().  This macro should only be
              employed if WIFEXITED returned true.
    
       WIFSIGNALED(status)
              returns true if the child process was terminated by a signal.
    
       WTERMSIG(status)
              returns the number of the signal that caused the  child  process
              to terminate.  This macro should only be employed if WIFSIGNALED
              returned true.
    
       WCOREDUMP(status)
              returns true if the child produced  a  core  dump.   This  macro
              should  only  be  employed  if  WIFSIGNALED returned true.  This
              macro is not specified in POSIX.1-2001 and is not  available  on
              some  Unix  implementations  (e.g.,  AIX, SunOS).  Only use this
              enclosed in #ifdef WCOREDUMP ... #endif.
    
       WIFSTOPPED(status)
              returns true if the child process was stopped by delivery  of  a
              signal;  this  is  only possible if the call was done using WUN‐
              TRACED or when the child is being traced (see ptrace(2)).
    
       WSTOPSIG(status)
              returns the number of the signal which caused the child to stop.
              This macro should only be employed if WIFSTOPPED returned true.
    
       WIFCONTINUED(status)
              (since  Linux  2.6.10)  returns  true  if  the child process was
              resumed by delivery of SIGCONT.
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Excuse me if this has indeed been asked before, I couldn't see anything that
I have a database table which is full-text indexed and i use the CONTAINS-function
I have a domain with a loto of indexed pages, I use this one
(I've looked at many other similar posts on SO and have unfortunately not been
We use CRM 4.0 at our institution and have no plans to upgrade presently
I want to document my source (C# sources), indeed I use XML documentation tags
I have a big problem using TBXML . When I use: + (NSString*) textForElement:(TBXMLElement*)aXMLElement
I have a very simple question about transactions. (In sql server 2000, but I
I always use vim + cscope to check symbol definition, and I find cscope
I use AvalonDock to have a vs-like docking style, and I use prism to

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.