Linux cpanel2.daytoncreative.net 2.6.32-754.29.2.el6.x86_64 #1 SMP Tue May 12 17:39:04 UTC 2020 x86_64
Apache/2.4.43 (cPanel) OpenSSL/1.1.1g mod_bwlimited/1.4
Server IP : 70.62.220.67 & Your IP : 216.73.216.193
Domains :
Cant Read [ /etc/named.conf ]
User : michaelgreg
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
log /
perl-5.20.2 /
t /
io /
Delete
Unzip
Name
Size
Permission
Date
Action
argv.t
3.92
KB
-r--r--r--
2014-12-27 11:49
binmode.t
1.02
KB
-r--r--r--
2014-12-27 11:49
bom.t
329
B
-r--r--r--
2014-12-27 11:49
closepid.t
1.26
KB
-r--r--r--
2014-12-27 11:49
crlf.t
2.45
KB
-r--r--r--
2014-12-27 11:49
crlf_through.t
152
B
-r--r--r--
2014-12-27 11:49
data.t
1.5
KB
-r--r--r--
2014-12-27 11:49
defout.t
1.09
KB
-r--r--r--
2014-12-27 11:49
dup.t
3.09
KB
-r--r--r--
2014-12-27 11:49
eintr.t
3.65
KB
-r--r--r--
2015-01-12 20:14
eintr_print.t
2.48
KB
-r--r--r--
2014-12-27 11:49
errno.t
1.12
KB
-r--r--r--
2014-12-27 11:49
errnosig.t
746
B
-r--r--r--
2014-12-27 11:49
fflush.t
3.25
KB
-r--r--r--
2014-12-27 11:49
fs.t
12.97
KB
-r--r--r--
2014-12-27 11:49
inplace.t
1.83
KB
-r--r--r--
2014-12-27 11:49
iofile.t
644
B
-r--r--r--
2014-12-27 11:49
iprefix.t
707
B
-r--r--r--
2014-12-27 11:49
layers.t
6.37
KB
-r--r--r--
2014-12-27 11:49
nargv.t
1.16
KB
-r--r--r--
2014-12-27 11:49
open.t
14.56
KB
-r--r--r--
2014-12-27 11:49
openpid.t
2.39
KB
-r--r--r--
2014-12-27 11:49
perlio.t
5.73
KB
-r--r--r--
2014-12-27 11:49
perlio_fail.t
1.06
KB
-r--r--r--
2014-12-27 11:49
perlio_leaks.t
675
B
-r--r--r--
2014-12-27 11:49
perlio_open.t
756
B
-r--r--r--
2014-12-27 11:49
pipe.t
5.9
KB
-r--r--r--
2014-12-27 11:49
print.t
1.41
KB
-r--r--r--
2014-12-27 11:49
pvbm.t
2.39
KB
-r--r--r--
2014-12-27 11:49
read.t
523
B
-r--r--r--
2014-12-27 11:49
say.t
1.05
KB
-r--r--r--
2014-12-27 11:49
sem.t
1.78
KB
-r--r--r--
2014-12-27 11:49
shm.t
2.56
KB
-r--r--r--
2014-12-27 11:49
socket.t
3.51
KB
-r--r--r--
2014-12-27 11:49
tell.t
4.94
KB
-r--r--r--
2014-12-27 11:49
through.t
4.52
KB
-r--r--r--
2014-12-27 11:49
utf8.t
9.28
KB
-r--r--r--
2014-12-27 11:49
Save
Rename
#!./perl ##################################################################### # # Test for process id return value from open # Ronald Schmidt (The Software Path) RonaldWS@software-path.com # ##################################################################### BEGIN { chdir 't' if -d 't'; @INC = '../lib'; require './test.pl'; } if ($^O eq 'dos') { skip_all("no multitasking"); } plan tests => 10; watchdog(15, $^O eq 'MSWin32' ? "alarm" : ''); use Config; $| = 1; $SIG{PIPE} = 'IGNORE'; $SIG{HUP} = 'IGNORE' if $^O eq 'interix'; my $perl = which_perl(); $perl .= qq[ "-I../lib"]; # # commands run 4 perl programs. Two of these programs write a # short message to STDOUT and exit. Two of these programs # read from STDIN. One reader never exits and must be killed. # the other reader reads one line, waits a few seconds and then # exits to test the waitpid function. # $cmd1 = qq/$perl -e "\$|=1; print qq[first process\\n]; sleep 30;"/; $cmd2 = qq/$perl -e "\$|=1; print qq[second process\\n]; sleep 30;"/; $cmd3 = qq/$perl -e "print <>;"/; # hangs waiting for end of STDIN $cmd4 = qq/$perl -e "print scalar <>;"/; #warn "#$cmd1\n#$cmd2\n#$cmd3\n#$cmd4\n"; # start the processes ok( $pid1 = open(FH1, "$cmd1 |"), 'first process started'); ok( $pid2 = open(FH2, "$cmd2 |"), ' second' ); { no warnings 'once'; ok( $pid3 = open(FH3, "| $cmd3"), ' third' ); } ok( $pid4 = open(FH4, "| $cmd4"), ' fourth' ); print "# pids were $pid1, $pid2, $pid3, $pid4\n"; my $killsig = 'HUP'; $killsig = 1 unless $Config{sig_name} =~ /\bHUP\b/; # get message from first process and kill it chomp($from_pid1 = scalar(<FH1>)); is( $from_pid1, 'first process', 'message from first process' ); $kill_cnt = kill $killsig, $pid1; is( $kill_cnt, 1, 'first process killed' ) || print "# errno == $!\n"; # get message from second process and kill second process and reader process chomp($from_pid2 = scalar(<FH2>)); is( $from_pid2, 'second process', 'message from second process' ); $kill_cnt = kill $killsig, $pid2, $pid3; is( $kill_cnt, 2, 'killing procs 2 & 3' ) || print "# errno == $!\n"; # send one expected line of text to child process and then wait for it select(FH4); $| = 1; select(STDOUT); printf FH4 "ok %d - text sent to fourth process\n", curr_test(); next_test(); print "# waiting for process $pid4 to exit\n"; $reap_pid = waitpid $pid4, 0; is( $reap_pid, $pid4, 'fourth process reaped' );