mirror of
https://github.com/janet-lang/janet
synced 2025-04-26 04:33:18 +00:00
Fix unused variable warnings.
This commit is contained in:
parent
d481d079ba
commit
9e0f36e5a7
@ -429,9 +429,9 @@ static int proc_get_status(JanetProc *proc) {
|
|||||||
/* Function that is called in separate thread to wait on a pid */
|
/* Function that is called in separate thread to wait on a pid */
|
||||||
static JanetEVGenericMessage janet_proc_wait_subr(JanetEVGenericMessage args) {
|
static JanetEVGenericMessage janet_proc_wait_subr(JanetEVGenericMessage args) {
|
||||||
JanetProc *proc = (JanetProc *) args.argp;
|
JanetProc *proc = (JanetProc *) args.argp;
|
||||||
|
#ifdef WNOWAIT
|
||||||
pid_t result;
|
pid_t result;
|
||||||
int status = 0;
|
int status = 0;
|
||||||
#ifdef WNOWAIT
|
|
||||||
do {
|
do {
|
||||||
result = waitpid(proc->pid, &status, WNOWAIT);
|
result = waitpid(proc->pid, &status, WNOWAIT);
|
||||||
} while (result == -1 && errno == EINTR);
|
} while (result == -1 && errno == EINTR);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user