mirror of
https://gitlab.com/shorewall/code.git
synced 2025-01-30 17:39:33 +01:00
Trace system calls when debugging
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
46c4387397
commit
42aa3724af
@ -2274,11 +2274,16 @@ sub load_kernel_modules( ) {
|
|||||||
# Q[uie]t version of system(). Returns true for success
|
# Q[uie]t version of system(). Returns true for success
|
||||||
#
|
#
|
||||||
sub qt( $ ) {
|
sub qt( $ ) {
|
||||||
|
if ( $debug ) {
|
||||||
|
print "SYS----> @_\n";
|
||||||
|
system( "@_ 2>&1" );
|
||||||
|
} else {
|
||||||
system( "@_ > /dev/null 2>&1" ) == 0;
|
system( "@_ > /dev/null 2>&1" ) == 0;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
sub qt1( $ ) {
|
sub qt1( $ ) {
|
||||||
1 while system( "@_ > /dev/null 2>&1" ) == 4;
|
1 while qt( "@_" ) == 4;
|
||||||
$? == 0;
|
$? == 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user