DataMuseum.dk

Presents historical artifacts from the history of:

DKUUG/EUUG Conference tapes

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about DKUUG/EUUG Conference tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - metrics - download
Index: T p

⟦d67978933⟧ TextFile

    Length: 684 (0x2ac)
    Types: TextFile
    Names: »pgmwait.c«

Derivation

└─⟦2d1937cfd⟧ Bits:30007241 EUUGD22: P.P 5.0
    └─⟦dc59850a2⟧ »EurOpenD22/pp5.0/pp-5.tar.Z« 
        └─⟦e5a54fb17⟧ 
            └─⟦this⟧ »pp-5.0/Lib/util/pgmwait.c« 

TextFile

/* pgmwait: wait for a child process */

# ifndef lint
static char Rcsid[] = "@(#)$Header: /cs/research/pp/hubris/pp-beta/Lib/util/RCS/pgmwait.c,v 5.0 90/09/20 16:17:43 pp Exp Locker: pp $";
# endif

/*
 * $Header: /cs/research/pp/hubris/pp-beta/Lib/util/RCS/pgmwait.c,v 5.0 90/09/20 16:17:43 pp Exp Locker: pp $
 *
 * $Log:	pgmwait.c,v $
 * Revision 5.0  90/09/20  16:17:43  pp
 * rcsforce : 5.0 public release
 * 
 */



#include        "head.h"
#include        <sys/wait.h>

int pgmwait(child)
int     child;
{
	union   wait    w;
	int     pid;

	while( (pid = wait(&w)) != child && pid != -1);
	if(WIFSIGNALED(w))
		return(NOTOK);
	return( rp_isgood(w.w_retcode) ? OK : NOTOK);
}