Displaying Source Code(s)
|
|
Program to work on Child Processes.
--------------------------------------------------------------------------------
/* Program to work on Child Processes */
# include < stdio.h>
# include < stdlib.h>
# include < unistd.h>
int main()
{
long limit;
/* GET THE LIMIT OF THE ARGUMENT */
if((limit = sysconf(_SC_ARG_MAX)) < 0)
{
perror("ARG MAXIMUM LIMIT ERROR
<BR>);
}
else
{
printf("ARGUMENT LIMIT IS %ld
<BR>,limit);
}
/* GET THE LIMIT OF THE CHILD PROCESS */
if((limit = sysconf(_SC_CHILD_MAX)) < 0)
{
perror("CHILD MAXIMUM LIMIT ERROR
<BR>);
}
else
{
printf("MAXIMUM CHILD PROCESS %ld
<BR>,limit);
}
printf("<BR>);
return(0);
}
|
|
|