Throw away stdout/stderr for browserds we launch too
authorSteven Luo <steven+maemo@steven676.net>
Fri, 5 Feb 2010 07:37:56 +0000 (23:37 -0800)
committerSteven Luo <steven+maemo@steven676.net>
Fri, 5 Feb 2010 08:11:09 +0000 (00:11 -0800)
Commit d8d8d1ed... ("Close stdin/stdout/stderr in child processes before
exec()") didn't prevent browserd from spewing noise, because we invoke
that via system() instead of fork()/exec().  Fix that oversight.

launcher.c

index 93cce2f..feef231 100644 (file)
@@ -183,9 +183,9 @@ void launch_microb(struct swb_context *ctx, char *uri) {
        if (WIFEXITED(status) && WEXITSTATUS(status)) {
                kill_browserd = 1;
 #ifdef FREMANTLE
-               system("/usr/sbin/browserd -d -b");
+               system("/usr/sbin/browserd -d -b > /dev/null 2>&1");
 #else
-               system("/usr/sbin/browserd -d");
+               system("/usr/sbin/browserd -d > /dev/null 2>&1");
 #endif
        }