S
Sara Shoemaker
Hi all -
I am trying to launch a web browser from within my code for Linux.
The problem is that I am getting no failure code back when the browser
doesn't launch. (I'm trying to force a failure case so I can test the
alert dialog, so I am trying to launch a browser that I know doesn't
exist on my machine).
I am checking the return value from the call to system(), and am
checking the WEXITSTATUS() of the return code, and both evaluate to
0.... which should only happen in case of success.
Is there another way of validating whether a process has launched?
Can I check the current processes from within my code?
Thanks in advance.
-Sara
I am trying to launch a web browser from within my code for Linux.
The problem is that I am getting no failure code back when the browser
doesn't launch. (I'm trying to force a failure case so I can test the
alert dialog, so I am trying to launch a browser that I know doesn't
exist on my machine).
I am checking the return value from the call to system(), and am
checking the WEXITSTATUS() of the return code, and both evaluate to
0.... which should only happen in case of success.
Is there another way of validating whether a process has launched?
Can I check the current processes from within my code?
Thanks in advance.
-Sara