[PATCH 2/4] xfstests: Support C libraries that define SIGCHLD instead of SIGCLD

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]



SIGCLD is the name used by System V; SIGCHLD is the name defined by
Posix.  Some C libraries will only define SIGCHLD and not SIGCLD, so
accomodate them.

Signed-off-by: Theodore Ts'o <tytso@xxxxxxx>
---
 ltp/doio.c      | 4 ++++
 ltp/growfiles.c | 6 +++++-
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/ltp/doio.c b/ltp/doio.c
index 966cff1..3e525d4 100644
--- a/ltp/doio.c
+++ b/ltp/doio.c
@@ -361,7 +361,11 @@ char	**argv;
 		case SIGTSTP:
 		case SIGSTOP:
 		case SIGCONT:
+#if defined(SIGCLD)
 		case SIGCLD:
+#elif defined (SIGCHLD)
+		case SIGCHLD:
+#endif
 		case SIGBUS:
 		case SIGSEGV:
 		case SIGQUIT:
diff --git a/ltp/growfiles.c b/ltp/growfiles.c
index 06f179f..19ed013 100644
--- a/ltp/growfiles.c
+++ b/ltp/growfiles.c
@@ -1389,7 +1389,11 @@ set_sig()
 #ifdef SIGRESTART
 	        case SIGRESTART:
 #endif /* SIGRESTART */
-                case SIGCLD:
+#if defined(SIGCLD)
+		case SIGCLD:
+#elif defined(SIGCHLD)
+		case SIGCHLD:
+#endif
                     break;
 
                 default:
-- 
2.3.0

--
To unsubscribe from this list: send the line "unsubscribe fstests" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Filesystems Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux