Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
LECABashLib
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2
Issues
2
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
LECASofts
LECABashLib
Commits
3170af09
Commit
3170af09
authored
Apr 12, 2016
by
Eric Coissac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Returns a status equal to 1 if the timeout is exceeded
parent
27df7f1e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
timeout.sh
timeout.sh
+3
-2
No files found.
timeout.sh
View file @
3170af09
...
...
@@ -35,9 +35,9 @@ function timeoutcmd() {
kill
-9
$sleeppid
else
if
((
$(
ps
$mainpid
| tail
-n
+2 | wc
-l
)
>
0
))
;
then
echo
killed
kill
-9
$mainpid
# logwarning "Timeout after ${seconde}s on command : $*"
logwarning
"Timeout after
${
seconde
}
s on command :
$*
"
return
1
fi
fi
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment