source: liacs/os/assignment1/child1.c@ 198

Last change on this file since 198 was 2, checked in by Rick van der Zwet, 15 years ago

Initial import of data of old repository ('data') worth keeping (e.g. tracking
means of URL access statistics)

File size: 356 bytes
RevLine 
[2]1#include <stdio.h>
2#include <unistd.h>
3#include <stdlib.h>
4
5/* a simple child */
6int main (void) {
7 /* the child's process new program */
8 /* This program replaces the parent's program */
9 printf("Process[%d]: child in execution ... \n",
10 getpid());
11 sleep(1);
12 printf("Process[%d]: child, terminating .. \n", getpid());
13 return(0);
14}
Note: See TracBrowser for help on using the repository browser.