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_wait4_or_die(3) Library Functions Manual explain_wait4_or_die(3)NAME
explain_wait4_or_die - wait for process to change state and report errors
SYNOPSIS
#include <libexplain/wait4.h>
void explain_wait4_or_die(int pid, int *status, int options, struct rusage *rusage);
DESCRIPTION
The explain_wait4_or_die function is used to call the wait4(2) system call. On failure an explanation will be printed to stderr, obtained
from explain_wait4(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_wait4_or_die(pid, status, options, rusage);
pid The pid, exactly as to be passed to the wait4(2) system call.
status The status, exactly as to be passed to the wait4(2) system call.
options The options, exactly as to be passed to the wait4(2) system call.
rusage The rusage, exactly as to be passed to the wait4(2) system call.
Returns:
This function only returns on success, see wait4(2) for more information. On failure, prints an explanation and exits.
SEE ALSO wait4(2)
wait for process to change state
explain_wait4(3)
explain wait4(2) errors
exit(2) terminate the calling process
COPYRIGHT
libexplain version 0.52
Copyright (C) 2008 Peter Miller
explain_wait4_or_die(3)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)