ndt-dev - [ndt] r349 committed - more error processing...
Subject: NDT-DEV email list created
List archive
- From:
- To:
- Subject: [ndt] r349 committed - more error processing...
- Date: Fri, 23 Apr 2010 02:08:00 +0000
Revision: 349
Author: rcarlson501
Date: Thu Apr 22 19:07:19 2010
Log: more error processing
Call exit(-2) when a child generates a SIGSEGV.
handle case, terminate process, if a child receives a
blank 'go' message.
4/22/09 RAC
http://code.google.com/p/ndt/source/detail?r=349
Modified:
/trunk/Applet/Makefile.in
/trunk/src/web100srv.c
=======================================
--- /trunk/Applet/Makefile.in Tue Apr 13 19:14:36 2010
+++ /trunk/Applet/Makefile.in Thu Apr 22 19:07:19 2010
@@ -222,7 +222,6 @@
Tcpbw100_JAVA = Tcpbw100.java
Tcpbw100_jar_SOURCES = Tcpbw100.java
EXTRA_DIST = MANIFEST.MF Tcpbw100_msgs_ca_ES.properties Tcpbw100_msgs_nb_NO.properties Tcpbw100_msgs_en_US.properties Tcpbw100_msgs_nl_NL.properties Tcpbw100_msgs_fr_FR.properties Tcpbw100_msgs_ru_RU.properties
-
all: all-am
.SUFFIXES:
=======================================
--- /trunk/src/web100srv.c Wed Apr 21 17:45:18 2010
+++ /trunk/src/web100srv.c Thu Apr 22 19:07:19 2010
@@ -408,6 +408,9 @@
break;
case SIGSEGV:
log_println(6, "DEBUG, caught SIGSEGV signal and terminated process (%d)", getpid());
+ if (getpid() != ndtpid)
+ exit(-2);
+ break;
case SIGINT:
exit(0);
case SIGTERM:
@@ -2289,6 +2292,10 @@
log_println(6, "Got 'go' signal from parent, ready to start testing %d", getpid());
break;
}
+ if (buff[0] == 0) {
+ log_println(6, "Child %d received 'go' signal, exiting",
getpid());
+ exit(-1);
+ }
}
set_timestamp();
- [ndt] r349 committed - more error processing..., ndt, 04/22/2010
Archive powered by MHonArc 2.6.16.