3 ms·
The whole concept of "exit codes" is a legacy of the PDP-11 era, when getting anything back from a program was hard. Arguably, you should get back something lik
by Animats 5y ago
The whole concept of "exit codes" is a legacy of the PDP-11 era, when getting anything back from a program was hard. Arguably, you should get back something like argc/argv and environment variable updates. Then programs would be more like functions.
- adtac 5y agoargv is stored in the program's memory. where would this hypothetical, arbitrarily sized return data be stored after the program exits? who is responsible for storing it until the exited process' parent asks for it? the kernel?
- Animats 5y agoWhere is pipe data stored? In Linux, there's "msgsend". In Windows there's PostMessage. In QNX there's MsgSend. It's not 1990 any more.