aboutsummaryrefslogtreecommitdiffstats
path: root/Tools/portbuild
diff options
context:
space:
mode:
authorasami <asami@FreeBSD.org>1999-06-25 10:07:29 +0800
committerasami <asami@FreeBSD.org>1999-06-25 10:07:29 +0800
commit60bc0f545baf5b0091b3de19d43f740c621d98fa (patch)
treea92ba9c69bc3e9ef97003d7bb32532579fe4b73f /Tools/portbuild
parent120da06c574b7dd51cb14e7a5eedcca3cc88e54c (diff)
downloadfreebsd-ports-gnome-60bc0f545baf5b0091b3de19d43f740c621d98fa.tar.gz
freebsd-ports-gnome-60bc0f545baf5b0091b3de19d43f740c621d98fa.tar.zst
freebsd-ports-gnome-60bc0f545baf5b0091b3de19d43f740c621d98fa.zip
Print out date and time the port is killed due to timeout.
Diffstat (limited to 'Tools/portbuild')
-rwxr-xr-xTools/portbuild/scripts/ptimeout5
1 files changed, 4 insertions, 1 deletions
diff --git a/Tools/portbuild/scripts/ptimeout b/Tools/portbuild/scripts/ptimeout
index 53e28b77c3ae..62cb404ad001 100755
--- a/Tools/portbuild/scripts/ptimeout
+++ b/Tools/portbuild/scripts/ptimeout
@@ -1,6 +1,9 @@
#!/usr/bin/perl -w
# ptimeout: executes command but kills it after a specified timeout
# usage: ptimeout timeout command args ...
+
+require "ctime.pl";
+
$timeout=$ARGV[0];
splice(@ARGV, 0, 1);
#print "timeout is ", $timeout, "\n";
@@ -26,7 +29,7 @@ if ($pid1 = fork) {
else {
# second child
sleep $timeout;
- print "ptimeout: killing @ARGV (pid $pid1) since timeout of $timeout expired\n";
+ print "ptimeout: killing @ARGV (pid $pid1) since timeout of $timeout expired at ", &ctime(time);
kill 'TERM', $pid1;
exit 1;
}