add Chris Torek's comment before removing
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Sun, 24 Jun 1990 07:20:43 +0000 (23:20 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Sun, 24 Jun 1990 07:20:43 +0000 (23:20 -0800)
SCCS-vsn: lib/libcompat/4.1/reset.c 4.2

usr/src/lib/libcompat/4.1/reset.c

index 700ccf3..5fef5de 100644 (file)
@@ -1,4 +1,20 @@
-/*     reset.c 4.1     83/06/30        */
+/*     reset.c 4.2     90/06/23        */
+
+/*
+ * This can't be written in C.  You have to longjmp from a context
+ * below (stackwise) the call to setjmp:
+ *
+ *     /* test reset/setexit *(/
+ *     main()
+ *     {
+ *             int i = setexit();
+ *             printf("i=%d\n", i);
+ *             if (i == 0)
+ *                     reset(1);
+ *     }
+ *
+ * The above prints `longjmp botch' and dumps core.
+ */
 
 /*
  * Backwards compatible setexit/reset.
 
 /*
  * Backwards compatible setexit/reset.