summaryrefslogtreecommitdiff
path: root/t/op.fork
blob: 41debbc2405826412297eabd7fd38491418a6513 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!./perl

# $Header: op.fork,v 3.0 89/10/18 15:29:12 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;
}