Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751912AbbGILDK (ORCPT ); Thu, 9 Jul 2015 07:03:10 -0400 Received: from ares41.inai.de ([46.4.122.207]:46517 "EHLO ares41.inai.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751236AbbGILC7 (ORCPT ); Thu, 9 Jul 2015 07:02:59 -0400 Date: Thu, 9 Jul 2015 13:02:58 +0200 (CEST) From: Jan Engelhardt To: torvalds@linux-foundation.org cc: Linux Kernel Mailing List Subject: Retain all bits of the exit(2) status value Message-ID: User-Agent: Alpine 2.20 (LSU 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 788 Lines: 18 I was made aware of a suggested change to POSIX's exit function. Current issue 7: http://pubs.opengroup.org/onlinepubs/9699919799/functions/exit.html Proposed change: http://austingroupbugs.net/view.php?id=594#c1317 In summary: from "the least significant 8 bits (that is, status & 0377)" to "the full value shall be available from waitid()" Now, Linux currently does a & 0xff in kernel/exit.c in the exit and exit_group syscalls. I would expect that the proposed change requires a new system call, and if so, what should its name be? -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/