Deleted Added
full compact
tst.execfail.ksh (178529) tst.execfail.ksh (178534)
1#
2# CDDL HEADER START
3#
4# The contents of this file are subject to the terms of the
5# Common Development and Distribution License (the "License").
6# You may not use this file except in compliance with the License.
7#
8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 31 unchanged lines hidden (view full) ---

40{
41 $dtrace -s /dev/stdin <<EOF
42 proc:::exec
43 /curpsinfo->pr_ppid == $child && args[0] == "$badexec"/
44 {
45 self->exec = 1;
46 }
47
1#
2# CDDL HEADER START
3#
4# The contents of this file are subject to the terms of the
5# Common Development and Distribution License (the "License").
6# You may not use this file except in compliance with the License.
7#
8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 31 unchanged lines hidden (view full) ---

40{
41 $dtrace -s /dev/stdin <<EOF
42 proc:::exec
43 /curpsinfo->pr_ppid == $child && args[0] == "$badexec"/
44 {
45 self->exec = 1;
46 }
47
48 proc:::exec-failure
48 proc:::exec_failure
49 /self->exec/
50 {
51 exit(0);
52 }
53EOF
54}
55
56sleeper()
57{
58 while true; do
49 /self->exec/
50 {
51 exit(0);
52 }
53EOF
54}
55
56sleeper()
57{
58 while true; do
59 /usr/bin/sleep 1
59 /bin/sleep 1
60 $badexec
61 done
62}
63
64if [ $# != 1 ]; then
65 echo expected one argument: '<'dtrace-path'>'
66 exit 2
67fi

--- 19 unchanged lines hidden ---
60 $badexec
61 done
62}
63
64if [ $# != 1 ]; then
65 echo expected one argument: '<'dtrace-path'>'
66 exit 2
67fi

--- 19 unchanged lines hidden ---