changeset 139 | cb1d3f4cf18e |
parent 138 | dff18d1ac2af |
child 167 | 7c6b221900bf |
138:dff18d1ac2af | 139:cb1d3f4cf18e |
---|---|
76 |
76 |
77 pid = fork (); |
77 pid = fork (); |
78 switch (pid) { |
78 switch (pid) { |
79 case 0: |
79 case 0: |
80 execve (CMD_FREE, args, NULL); |
80 execve (CMD_FREE, args, NULL); |
81 exit (EXIT_FAILURE); |
|
81 case -1: |
82 case -1: |
82 perror ("Fork Error"); |
83 perror ("Fork Error"); |
83 return EXIT_FAILURE; |
84 return EXIT_FAILURE; |
84 default: |
85 default: |
85 wait (&pid); |
86 wait (&pid); |