On Thu, Feb 23 2017, Oswald Buddenhagen wrote: > On Sat, Feb 18, 2017 at 10:39:14AM +0100, Yuri D'Elia wrote: >> As for the second patch, I'd like to contribute extended exit status >> codes. To avoid breaking old scripts, I'd add a new switch >> (-e/--exit-code or something like it) that changes the meaning of the >> exit status. >> > well, i'm still not such a big fan of this, and would really prefer a > callback mechanism. this would be also more compatible with a future > daemon mode, where exit codes are fairly meaningless. would you be > willing to work on that?
I see the use case when running as a daemon. You still need to specify the indexing status to the child process though. Would the same scheme be fine? I'd avoid having too many handlers there. Coming from offlineimap, just having an exit code is much simpler to script. > it's for the autotests, as you could have found from the history > (ab11737b3). ;) I saw the commit, but I don't see how gdb is used? ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot _______________________________________________ isync-devel mailing list isync-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/isync-devel