Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

explain_wait_or_die(3) [debian man page]

explain_wait_or_die(3)					     Library Functions Manual					    explain_wait_or_die(3)

NAME
explain_wait_or_die - wait for process to change state and report errors SYNOPSIS
#include <libexplain/wait.h> void explain_wait_or_die(int *status); DESCRIPTION
The explain_wait_or_die function is used to call the wait(2) system call. On failure an explanation will be printed to stderr, obtained from explain_wait(3), and then the process terminates by calling exit(EXIT_FAILURE). This function is intended to be used in a fashion similar to the following example: explain_wait_or_die(status); status The status, exactly as to be passed to the wait(2) system call. Returns: This function only returns on success. On failure, prints an explanation and exits. SEE ALSO
wait(2) wait for process to change state explain_wait(3) explain wait(2) errors exit(2) terminate the calling process COPYRIGHT
libexplain version 0.52 Copyright (C) 2008 Peter Miller explain_wait_or_die(3)

Check Out this Related Man Page

explain_waitpid_or_die(3)				     Library Functions Manual					 explain_waitpid_or_die(3)

NAME
explain_waitpid_or_die - wait for process to change state and report errors SYNOPSIS
#include <libexplain/waitpid.h> int pid = explain_waitpid_or_die(int pid, int *status, int options); DESCRIPTION
The explain_waitpid_or_die function is used to call the waitpid(2) system call. On failure an explanation will be printed to stderr, obtained from explain_waitpid(3), and then the process terminates by calling exit(EXIT_FAILURE). This function is intended to be used in a fashion similar to the following example: explain_waitpid_or_die(pid, status, options); pid The pid, exactly as to be passed to the waitpid(2) system call. status The status, exactly as to be passed to the waitpid(2) system call. options The options, exactly as to be passed to the waitpid(2) system call. Returns: This function only returns on success. On failure, prints an explanation and exits. SEE ALSO
waitpid(2) wait for process to change state explain_waitpid(3) explain waitpid(2) errors exit(2) terminate the calling process COPYRIGHT
libexplain version 0.52 Copyright (C) 2008 Peter Miller explain_waitpid_or_die(3)
Man Page

12 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Help with wait command

I have a script that runs numerous other scripts. I am using a wait command to try and get the calling script to wait for all process called to finish before proceeding. Issues How can I set wait to timeout IE a called program never terminates. Alternatively how can I check the called... (1 Reply)
Discussion started by: ultraman
1 Replies

2. Programming

wait system call

hi there, i had some trivial questions about this program here. i am kinda confused with these, hope you can help me to understand here. :) #include<stdio.h> #include<sys/wait.h> #include<sys/types.h> #include<unistd.h> int main(void) { int... (2 Replies)
Discussion started by: a25khan
2 Replies

3. UNIX for Dummies Questions & Answers

I/O wait Problem

When running top, I notice a bit more I/O wait time than usual. Is there a tool or piece of software out there that can me help evaluate the performance of these operations on my machine? Thanks! (5 Replies)
Discussion started by: unavb
5 Replies

4. Shell Programming and Scripting

Waiting on a group

In the below artificially simplified script, I want to wait till after a, b, and c have been printed, before printing "finished." If you just want to wait on a single background process, you can use $! (pid of the last background process). But this doesn't work if there's more than one... (1 Reply)
Discussion started by: tphyahoo
1 Replies

5. UNIX for Advanced & Expert Users

Log files

Hello, I want to delete a logfile but not all the message in the log; example, wait wait wait wait hello hello hello hello so in the logfile i will delete only the text hello and the wait not. (4 Replies)
Discussion started by: mp3catcer1
4 Replies

6. Shell Programming and Scripting

wait ${!}

In one of the shell script (Where abinitio graph is called), the last line is wait ${!}. What does this wait ${!} mean ??? (2 Replies)
Discussion started by: risshanth
2 Replies

7. UNIX for Advanced & Expert Users

wait process

can any one please give me clear idea of wait process in UNIX system. I am using AIX 5.3 and see loots of wait process. I have very basic concept of wait process. If CPU has nothing to do then a wait process is generated per CPU. But i want know the detail how is it forked. Is wait a jombe... (2 Replies)
Discussion started by: pchangba1
2 Replies

8. AIX

%wait nmon CPU-UTILISATION

Hi, I collect statistics with nmon. I'm very suprised about % wait of processor. Number Of Processors: 4 Processor Clock Speed: 4204 MHz Do U have an idea about % wait ? │ 0----------25-----------50----------75----------100 ... (1 Reply)
Discussion started by: tagger
1 Replies

9. Shell Programming and Scripting

Export variable, as a background process

Have a script where I need to wait for a process to run, but from that process I want to capture the row count. Script I have so far (easier than explanation): echo "Start" export NUMROWS=`td "select * from dbc.database" 2> /dev/null | grep "Query completed" | sed -e 's/.*Query... (7 Replies)
Discussion started by: Cranie
7 Replies

10. Shell Programming and Scripting

wait example

Hi Gurus, Some questions regarding wait. I have tried searching in this forum for threads on wait but not completely got what I am looking for. Background: One script (.sh) that starts/calls a reference to an application's executable and submits a batch job to it. Objective is to wait... (2 Replies)
Discussion started by: rsheikh
2 Replies

11. Programming

C: error in wait system call

i made this program but when i compile this code, compiler make this error, is an error on wait() system call but argumenti is right, or not?: esercizio.c:80:9: error: incompatible type for argument 1 of ‘wait' /usr/include/i386-linux-gnu/sys/wait.h:116:16: note: expected ‘__WAIT_STATUS' but... (4 Replies)
Discussion started by: tafazzi87
4 Replies

12. Windows & DOS: Issues & Discussions

Plink wait problem

Hi, I have run into a problem to which i can't seem to find any solution, posting here is my last resort. Problem: I am using plink to access my router and run a few configuration commands. When in enter configurations mode, instead of sending next command plink keeps on waiting for manual... (7 Replies)
Discussion started by: zaainabbas
7 Replies