util: Fix number of parameters passed to spawn_sync

We passed one too many

https://bugzilla.gnome.org/show_bug.cgi?id=680426
This commit is contained in:
Jasper St. Pierre 2012-07-22 22:23:36 -03:00
parent 75e49610cb
commit fd87468e36

View File

@ -150,7 +150,7 @@ function killall(processName) {
// whatever... // whatever...
let argv = ['pkill', '-f', '^([^ ]*/)?' + processName + '($| )']; let argv = ['pkill', '-f', '^([^ ]*/)?' + processName + '($| )'];
GLib.spawn_sync(null, argv, null, GLib.SpawnFlags.SEARCH_PATH, null, null); GLib.spawn_sync(null, argv, null, GLib.SpawnFlags.SEARCH_PATH, null);
// It might be useful to return success/failure, but we'd need // It might be useful to return success/failure, but we'd need
// a wrapper around WIFEXITED and WEXITSTATUS. Since none of // a wrapper around WIFEXITED and WEXITSTATUS. Since none of
// the current callers care, we don't bother. // the current callers care, we don't bother.