diff options
author | Ian C <ianc@noddybox.co.uk> | 2007-03-04 18:35:36 +0000 |
---|---|---|
committer | Ian C <ianc@noddybox.co.uk> | 2007-03-04 18:35:36 +0000 |
commit | 954af9179665457b40453a0417ddf5b3949a0449 (patch) | |
tree | e3772817de5c79e29b602ebe47fe0129793f1470 /sig.c | |
parent | 892e6e107dbf2386831bd00e7f1c2a0bbe8b2cbb (diff) |
This commit was generated by cvs2svn to compensate for changes in r2,
which included commits to RCS files with non-trunk default branches.
Diffstat (limited to 'sig.c')
-rw-r--r-- | sig.c | 24 |
1 files changed, 24 insertions, 0 deletions
@@ -0,0 +1,24 @@ +#include <stdlib.h> +#include <unistd.h> +#include <stdio.h> + +int main() +{ + setbuf(stdout,NULL); + printf("\nIan C\n\n-- \n"); + /*system("fortune /home/ianc/Documents/sigfortune");*/ + + switch (fork()) + { + case 0: + execlp("fortune","fortune","/home/ianc/Documents/sigfortune",(const char *)NULL); + + case -1: + break; + + default: + wait(NULL); + break; + } + +} |