bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: exit status issue


From: Greg Wooledge
Subject: Re: exit status issue
Date: Fri, 18 Nov 2011 15:07:45 -0500
User-agent: Mutt/1.4.2.3i

On Fri, Nov 18, 2011 at 01:49:38PM -0600, Dallas Clement wrote:
> [pid  6747] execve("/bin/touch", ["touch", "/mnt/array1/.accesstest"],
> [/* 14 vars */]) = 0
> Process 6748 attached
> Process 13686 suspended
> [pid  6748] execve("/usr/bin/logger", ["logger", "-s", "-t",
> "diskmon", "-p", "local0.info", "*** fsaccesstest test
> /mnt/array"...], [/* 14 vars */]) = 0
> Process 13686 resumed
> Process 6747 detached
> [pid 13686] --- SIGCHLD (Child exited) @ 0 (0) ---
> Process 13686 suspended
> diskmon: *** fsaccesstest test /mnt/array1 failed: status=1. retrying... (1) 
> ***
> Process 13686 resumed
> Process 6748 detached
> --- SIGCHLD (Child exited) @ 0 (0) ---
> 
> Notice that the child process pid=6747 exits with status 0

Where does it say that?  How are you even invoking strace here?  I don't
know how to read this output, nor do I know how to reproduce it.

> I just upgrade my bash from version 3.21 to 4.2 and I'm still seeing
> this problem.

Simplify the script, and reproduce the problem with something we can
actually read and understand.  For example,

#!/bin/bash
f() {
  touch /root/nopermission
  echo "\$? is $?"
}
f

If you can't reproduce the problem in the simpler script, then you know
the problem is being triggered by something in the more complex script.
That will help you narrow down the cause.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]