/*
- * "$Id: client.c,v 1.91.2.44 2003/02/11 18:23:34 mike Exp $"
+ * "$Id: client.c,v 1.91.2.45 2003/03/07 19:25:48 mike Exp $"
*
* Client routines for the Common UNIX Printing System (CUPS) scheduler.
*
#ifdef HAVE_SIGSET
sighold(SIGTERM);
- sighold(SIGCHLD);
#elif defined(HAVE_SIGACTION)
sigemptyset(&newmask);
sigaddset(&newmask, SIGTERM);
- sigaddset(&newmask, SIGCHLD);
sigprocmask(SIG_BLOCK, &newmask, &oldmask);
#endif /* HAVE_SIGSET */
+ IgnoreChildSignals();
+
/*
* Then execute the command...
*/
#ifdef HAVE_SIGSET
sigset(SIGTERM, SIG_DFL);
- sigset(SIGCHLD, SIG_DFL);
sigrelse(SIGTERM);
- sigrelse(SIGCHLD);
#elif defined(HAVE_SIGACTION)
memset(&action, 0, sizeof(action));
action.sa_handler = SIG_DFL;
sigaction(SIGTERM, &action, NULL);
- sigaction(SIGCHLD, &action, NULL);
sigprocmask(SIG_SETMASK, &oldmask, NULL);
#else
signal(SIGTERM, SIG_DFL);
- signal(SIGCHLD, SIG_DFL);
#endif /* HAVE_SIGSET */
-
/*
* Execute the pipe program; if an error occurs, exit with status 1...
*/
#ifdef HAVE_SIGSET
sigrelse(SIGTERM);
- sigrelse(SIGCHLD);
#elif defined(HAVE_SIGACTION)
sigprocmask(SIG_SETMASK, &oldmask, NULL);
#endif /* HAVE_SIGSET */
+ CatchChildSignals();
+
return (pid);
}
/*
- * End of "$Id: client.c,v 1.91.2.44 2003/02/11 18:23:34 mike Exp $".
+ * End of "$Id: client.c,v 1.91.2.45 2003/03/07 19:25:48 mike Exp $".
*/
/*
- * "$Id: job.c,v 1.124.2.49 2003/02/28 20:18:26 mike Exp $"
+ * "$Id: job.c,v 1.124.2.50 2003/03/07 19:25:49 mike Exp $"
*
* Job management routines for the Common UNIX Printing System (CUPS).
*
#ifdef HAVE_SIGSET
sighold(SIGTERM);
- sighold(SIGCHLD);
#elif defined(HAVE_SIGACTION)
sigemptyset(&newmask);
sigaddset(&newmask, SIGTERM);
- sigaddset(&newmask, SIGCHLD);
sigprocmask(SIG_BLOCK, &newmask, &oldmask);
#endif /* HAVE_SIGSET */
+ IgnoreChildSignals();
+
if ((*pid = fork()) == 0)
{
/*
sigset(SIGCHLD, SIG_DFL);
sigrelse(SIGTERM);
- sigrelse(SIGCHLD);
#elif defined(HAVE_SIGACTION)
memset(&action, 0, sizeof(action));
action.sa_handler = SIG_DFL;
sigaction(SIGTERM, &action, NULL);
- sigaction(SIGCHLD, &action, NULL);
sigprocmask(SIG_SETMASK, &oldmask, NULL);
#else
signal(SIGTERM, SIG_DFL);
- signal(SIGCHLD, SIG_DFL);
#endif /* HAVE_SIGSET */
/*
#ifdef HAVE_SIGSET
sigrelse(SIGTERM);
- sigrelse(SIGCHLD);
#elif defined(HAVE_SIGACTION)
sigprocmask(SIG_SETMASK, &oldmask, NULL);
#endif /* HAVE_SIGSET */
+ CatchChildSignals();
+
return (*pid);
}
/*
- * End of "$Id: job.c,v 1.124.2.49 2003/02/28 20:18:26 mike Exp $".
+ * End of "$Id: job.c,v 1.124.2.50 2003/03/07 19:25:49 mike Exp $".
*/
/*
- * "$Id: main.c,v 1.57.2.34 2003/02/13 03:33:33 mike Exp $"
+ * "$Id: main.c,v 1.57.2.35 2003/03/07 19:25:50 mike Exp $"
*
* Scheduler main loop for the Common UNIX Printing System (CUPS).
*
#else
signal(SIGCLD, sigchld_handler); /* No, SIGCLD isn't a typo... */
#endif /* HAVE_SIGSET */
+
+#if defined(HAVE_WAITPID) || defined(HAVE_WAIT3)
+ sigchld_handler(SIGCHLD);
+#endif /* HAVE_WAITPID || HAVE_WAIT3 */
}
/*
- * End of "$Id: main.c,v 1.57.2.34 2003/02/13 03:33:33 mike Exp $".
+ * End of "$Id: main.c,v 1.57.2.35 2003/03/07 19:25:50 mike Exp $".
*/
#!/bin/sh
#
-# "$Id: run-stp-tests.sh,v 1.4.2.11 2003/01/03 18:50:18 mike Exp $"
+# "$Id: run-stp-tests.sh,v 1.4.2.12 2003/03/07 19:25:51 mike Exp $"
#
# Perform the complete set of IPP compliance tests specified in the
# CUPS Software Test Plan.
echo "1 - Basic conformance test with no load testing (all systems)"
echo "2 - Basic conformance test with some load testing (minimum 256MB VM)"
echo "3 - Basic conformance test with extreme load testing (minimum 1024MB VM)"
+echo "4 - Basic conformance test with torture load testing (minimum 2048MB VM)"
echo ""
echo "Please enter the number of the test you wish to perform:"
nprinters2=1000
pjobs=100
;;
+ 4)
+ echo "Running the torture tests (4)"
+ nprinters1=10000
+ nprinters2=20000
+ pjobs=200
+ ;;
*)
echo "Running the timid tests (1)"
nprinters1=0
echo ""
#
-# End of "$Id: run-stp-tests.sh,v 1.4.2.11 2003/01/03 18:50:18 mike Exp $"
+# End of "$Id: run-stp-tests.sh,v 1.4.2.12 2003/03/07 19:25:51 mike Exp $"
#