Skip to content

Commit ca42ee0

Browse files
vasildJan Lindström
authored andcommitted
Fix galera.galera_suspend_slave on FreeBSD
Use symbolic signal names (e.g. SIGSTOP) instead of numeric ones (e.g. 19) because the latter are not portable.
1 parent 0eaf24e commit ca42ee0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mysql-test/suite/galera/t/galera_suspend_slave.test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ CREATE TABLE t1 (f1 INTEGER PRIMARY KEY) ENGINE=InnoDB;
2525
my $pid_filename = $ENV{'NODE_2_PIDFILE'};
2626
my $mysqld_pid = `cat $pid_filename`;
2727
chomp($mysqld_pid);
28-
system("kill -19 $mysqld_pid");
28+
system("kill -SIGSTOP $mysqld_pid");
2929
exit(0);
3030
EOF
3131

@@ -37,7 +37,7 @@ INSERT INTO t1 VALUES (1);
3737
my $pid_filename = $ENV{'NODE_2_PIDFILE'};
3838
my $mysqld_pid = `cat $pid_filename`;
3939
chomp($mysqld_pid);
40-
system("kill -18 $mysqld_pid");
40+
system("kill -SIGCONT $mysqld_pid");
4141
exit(0);
4242
EOF
4343

0 commit comments

Comments
 (0)