summaryrefslogtreecommitdiff
path: root/t/op/fork.t
diff options
context:
space:
mode:
Diffstat (limited to 't/op/fork.t')
-rw-r--r--t/op/fork.t16
1 files changed, 16 insertions, 0 deletions
diff --git a/t/op/fork.t b/t/op/fork.t
new file mode 100644
index 0000000000..55696fd98f
--- /dev/null
+++ b/t/op/fork.t
@@ -0,0 +1,16 @@
+#!./perl
+
+# $Header: fork.t,v 4.0 91/03/20 01:52:43 lwall Locked $
+
+$| = 1;
+print "1..2\n";
+
+if ($cid = fork) {
+ sleep 2;
+ if ($result = (kill 9, $cid)) {print "ok 2\n";} else {print "not ok 2 $result\n";}
+}
+else {
+ $| = 1;
+ print "ok 1\n";
+ sleep 10;
+}