rv when execve succeeds...

DJ Delorie dj at redhat.com
Wed Aug 9 16:21:34 UTC 2017


An issue I've got has become philosophical enough that I'm asking for
more qualified opinions...

If you trace execve() and it succeeds (i.e. the image you're tracing
is replaced), should a return value be printed?

I.e.
   execve("test.x", ["", "xx"], NULL) = 0

Should the "= 0" be there, to indicate success, or should it be
omitted (like exit()) to indicate "doesn't return" ?

(ref: https://bugzilla.redhat.com/show_bug.cgi?id=1406395)

(note, https://bugzilla.redhat.com/show_bug.cgi?id=1220802 shows it
returning the *wrong* value, which is more obviously a bug, so if the
"= 0" is zero only by coincidence... bug ;)

(and yes, reproduced with a current git head)




More information about the Strace-devel mailing list