diff options
Diffstat (limited to 'test/unistd/fork.c')
-rw-r--r-- | test/unistd/fork.c | 34 |
1 files changed, 15 insertions, 19 deletions
diff --git a/test/unistd/fork.c b/test/unistd/fork.c index da4f2688d..b163c0ef9 100644 --- a/test/unistd/fork.c +++ b/test/unistd/fork.c @@ -1,25 +1,9 @@ /* vi: set sw=4 ts=4: */ /* * fork test for uClibc + * Copyright (C) 2000-2006 by Erik Andersen <andersen@uclibc.org> * - * Copyright (C) 2000 by Lineo, inc. and Erik Andersen - * Copyright (C) 2000,2001 by Erik Andersen <andersen@uclibc.org> - * Written by Erik Andersen <andersen@uclibc.org> - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of the GNU Library General Public License as published by - * the Free Software Foundation; either version 2 of the License, or (at your - * option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License - * for more details. - * - * You should have received a copy of the GNU Library General Public License - * along with this program; if not, write to the Free Software Foundation, - * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * + * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. */ #include <stdio.h> @@ -32,12 +16,14 @@ #define GOT2 (1 << 2) #define GOT3 (1 << 3) +#ifdef __ARCH_USE_MMU__ + void child_handler(int sig) { fprintf(stderr, "I got a SIGCHLD\n"); } -int main(void) +int main(void) { pid_t pid1, pid2, pid3; int status, result, wpid; @@ -86,6 +72,16 @@ int main(void) return EXIT_SUCCESS; } +#else + +int main(void) +{ + printf("Skipping test on non-mmu host!\n"); + return EXIT_SUCCESS; +} + +#endif + /* Local Variables: c-file-style: "linux" |