Re: [PATCH]exit.c: support larger exit code

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Zhang, Wei-Jovi (NSN - CN/Hangzhou)
Date: Sunday, August 8, 2010 - 8:14 pm

>Alexander Clouter <alex <at> digriz.org.uk> wrote:
code
the

cover 

handle.  

using 
doubt 


impression and *hint* of what went wrong, it was not ever meant to cover
every possible error that the child process could report.

I think this is just a convention of userspace program. if program want
to obey this convention, it should be use one-byte limition exit code, I
agree this.
so this mail thread's subject should change to "if program use exit code
with not want to obey the convention, kernel should return which value?"

so the key is:	from kernel point of view, kernel should don't care any
userspace program's convention.
how to use exit code is program's business, kernel should not to force
userspace program to obey some convention, it's not a good idea for
kernel.

if program use exit(43), kernel return 43; if program use exit(11111),
kernel should return 11111, not return 43. Apparently, program don't
want 43, it just want 11111. 
program is very hard to understand to get 43. program maybe don't
understand why she give kernel a int exit code, but kernel give her a
byte back. she don't know any convention, she just want program works.
So kernel can make more smooth for userspace program. 

This is my 2 cents. Pls give your comments freely. :-) 


.jovi
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH]exit.c: support larger exit code, Zhang, Wei-Jovi (NSN ..., (Sun Aug 8, 8:14 pm)
Re: [PATCH]exit.c: support larger exit code, Alexander Clouter, (Mon Aug 9, 1:25 am)
Re: [PATCH]exit.c: support larger exit code, Alan Cox, (Mon Aug 9, 3:57 am)