X-Git-Url: http://git.apps.os.sepia.ceph.com/?p=xfstests-dev.git;a=blobdiff_plain;f=ltp%2Fgrowfiles.c;h=7ac44aba0bede0f5e0ddf7ee8c47c46b0fd47bf3;hp=06f179f442367b101e78a3203cb86ab0b5c6c46a;hb=10f6b23121ea5ac9927e44eb15b128716139e2b8;hpb=9323f95f9657801edaa69f9654cb34c9b52924ad diff --git a/ltp/growfiles.c b/ltp/growfiles.c index 06f179f4..7ac44aba 100644 --- a/ltp/growfiles.c +++ b/ltp/growfiles.c @@ -1,19 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0 /* * Copyright (c) 2000 Silicon Graphics, Inc. * All Rights Reserved. - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it would be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write the Free Software Foundation, - * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ /* * This program will grow a list of files. @@ -794,7 +782,7 @@ extern int Forker_npids; /* num of forked pid, defined in forker.c */ break; case 'W': - sprintf( TagName, "(%.39s)", optarg ); + sprintf( TagName, "(%.37s)", optarg ); break; case 'y': @@ -1389,7 +1377,7 @@ set_sig() #ifdef SIGRESTART case SIGRESTART: #endif /* SIGRESTART */ - case SIGCLD: + case SIGCHLD: break; default: @@ -1455,11 +1443,12 @@ notify_others() send_signals=1; /* only send signals once */ for (ind=0; ind< Forker_npids; ind++) { - if ( Forker_pids[ind] != Pid ) + if ( Forker_pids[ind] != Pid ) { if ( Debug > 1 ) printf("%s%s: %d DEBUG2 %s/%d: Sending SIGUSR2 to pid %d\n", Progname, TagName, Pid, __FILE__, __LINE__, Forker_pids[ind]); kill(Forker_pids[ind], SIGUSR2); + } } }