Skip to content

Commit

Permalink
[utils.js] Set stdout and stderr of spawned processes to /dev/null, s…
Browse files Browse the repository at this point in the history
…o 'cinnamon --replace' does not linger after restart.
  • Loading branch information
autarkper committed Nov 24, 2012
1 parent 47e9102 commit 893d14f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/misc/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ function trySpawn(argv)
{
try {
GLib.spawn_async(null, argv, null,
GLib.SpawnFlags.SEARCH_PATH,
GLib.SpawnFlags.SEARCH_PATH | GLib.SpawnFlags.STDOUT_TO_DEV_NULL | GLib.SpawnFlags.STDERR_TO_DEV_NULL,
null, null);
} catch (err) {
if (err.code == GLib.SpawnError.G_SPAWN_ERROR_NOENT) {
Expand Down

0 comments on commit 893d14f

Please sign in to comment.