errormsg in childprozess

Frank Huemme frank at mute.ruhr.de
Sun Mar 24 04:00:19 AEST 1991


hello,
in a subroutine of a large C program i had to start another Programm
that nether ends.

ret=fork();
if (ret==0)			/* in child */
	{
	execlp(.........
	exit();
	}

My Problem:
What`s the best way for the child to tell the father-process if something
was going wrong with execlp ( and fork() was ok )??

	frank
-- 
Frank Huemme , 4600 DO 1, email: frank at mute.ruhr.de



More information about the Comp.lang.c mailing list