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