Comment
Comment by gricardo99
I'm not sure if the code example changed on the linked page after your comment, but I see this code:
Which also confused me for similar reasons to your comment. I'm not familiar with exec, but generally non-zero return means a fail, and zero means success. So why is the "server up" for non-zero result?