]> granicus.if.org Git - strace/blobdiff - clone.c
travis: add build environment information to the travis log
[strace] / clone.c
diff --git a/clone.c b/clone.c
index 5c60fbe47c6f0046d95778f36ffa7c9af45e0e2a..a5f2b242e86926fec3e43faa14c4f5026ea4f1da 100644 (file)
--- a/clone.c
+++ b/clone.c
@@ -4,6 +4,7 @@
  * Copyright (c) 2008 Jan Kratochvil <jan.kratochvil@redhat.com>
  * Copyright (c) 2009-2013 Denys Vlasenko <dvlasenk@redhat.com>
  * Copyright (c) 2006-2015 Dmitry V. Levin <ldv@altlinux.org>
+ * Copyright (c) 2014-2017 The strace developers.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -108,7 +109,7 @@ SYS_FUNC(clone)
                                tcp->u_arg[ARG_STACKSIZE]);
 #endif
                tprints("flags=");
-               if (!printflags64(clone_flags, flags &CSIGNAL, NULL))
+               if (!printflags64(clone_flags, flags & ~CSIGNAL, NULL))
                        sep = "";
                if ((flags & CSIGNAL) != 0)
                        tprintf("%s%s", sep, signame(flags & CSIGNAL));