diff options
author | Jan Pokorný <jpokorny@redhat.com> | 2013-07-08 18:24:21 +0200 |
---|---|---|
committer | Jan Pokorný <jpokorny@redhat.com> | 2013-07-08 18:24:21 +0200 |
commit | 9a125015cf692b4bab7bee53d3d507f8ad3a7625 (patch) | |
tree | 58dab3fee9926a740b726a5c650dffddc22f4898 /08-exit-codes.txt | |
parent | 5672b034498334e9d183faed0a59bfd18fe87bb9 (diff) | |
download | tips-tricks-9a125015cf692b4bab7bee53d3d507f8ad3a7625.tar.gz tips-tricks-9a125015cf692b4bab7bee53d3d507f8ad3a7625.tar.xz tips-tricks-9a125015cf692b4bab7bee53d3d507f8ad3a7625.zip |
Explain how 254 exit code is obtained in bash code
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
Diffstat (limited to '08-exit-codes.txt')
-rw-r--r-- | 08-exit-codes.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/08-exit-codes.txt b/08-exit-codes.txt index bdc406e..df3fb9b 100644 --- a/08-exit-codes.txt +++ b/08-exit-codes.txt @@ -57,6 +57,12 @@ Solution #3: grep this document and pray it will help you :) bash: fork: retry: No child processes bash: fork: retry: No child processes - see also [1] + - bash code perspective: + jobs.c: + last_command_exit_value = EX_NOEXEC; + /** exit_value = EX_NOEXEC = 126 **/ + throw_to_top_level (); /* Reset signals, etc. */ + /** exit_value = 126 | 128 = 254 **/ [1] http://unix.stackexchange.com/questions/19113/fork-negative-return-value/19119#19119 |