Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Yoann Laissus
wine
Commits
1ef1a210
Commit
1ef1a210
authored
26 years ago
by
Marcus Meissner
Committed by
Alexandre Julliard
26 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Kill swapped out (wine) processes too and truncate diff after some xxx
lines.
parent
a975da05
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tools/testrun
+2
-2
2 additions, 2 deletions
tools/testrun
with
2 additions
and
2 deletions
tools/testrun
+
2
−
2
View file @
1ef1a210
...
...
@@ -150,7 +150,7 @@ sub kill_subprocesses {
# kill all subprocesses called 'wine'. Do not kill find, diff, sh
# and friends, which are also subprocesses of us.
foreach
(
keys
%kids
)
{
next
unless
(
$cmdline
{
$_
}
=~
/(wine|dosmod)/
);
next
unless
(
$cmdline
{
$_
}
=~
/(
(.|)
wine|dosmod)/
);
# if we have already killed it using -TERM, use -KILL
if
(
$killedalready
{
$_
})
{
kill
(
9
,
$_
);
# FIXME: use correct number?
...
...
@@ -250,7 +250,7 @@ while ($exe=<FIND>) {
alarm
(
1000
);
# so it doesn't trigger in the diff, kill or find.
system
("
touch
$cwd
/runs/
${runfile}
.out
");
system
("
$diff
$cwd
/runs/
${runfile}
.out
$cwd
/
${runfile}
.out
");
system
("
$diff
$cwd
/runs/
${runfile}
.out
$cwd
/
${runfile}
.out
|head -
$trunclines
");
system
("
head -
$trunclines
$cwd
/
${runfile}
.out >
$cwd
/runs/
${runfile}
.out
");
unlink
("
$cwd
/
${runfile}
.out
");
&kill_subprocesses
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment