return to UNIX

Write a program creating one parent and ten children processes (numbered: 0, 1, 2, ... 9).

Parent process:

Every child process:

Last part of file may contain less than k bytes and should be handled properly.

Parent should always wait for all children even when sending to pipe becomes impossible (SIGPIPE). Program can be stopped by SIGINT (C-c).

Program should take three parameters:

This task will be graded by Łukasz Wojciechowski, please submit your solutions to /home2/samba/wojciechowskil/unix/ folder.

Additional Remarks:
return to UNIX