Branch: Tag:

2005-05-23

2005-05-23 14:57:38 by Anders Johansson <anders@roxen.com>

Niceify external processes for indexing word and PDF files.

Rev: lib/modules/Search.pmod/Filter.pmod/Base.pike:1.17

1:   // This file is part of Roxen Search   // Copyright © 2001 Roxen IS. All rights reserved.   // - // $Id: Base.pike,v 1.16 2004/08/07 15:26:59 js Exp $ + // $Id: Base.pike,v 1.17 2005/05/23 14:57:38 anders Exp $      //! The MIME content types this class can filter.   constant contenttypes = ({ });
19:    Stdio.File pipe1 = pipe0->pipe(Stdio.PROP_IPC);    if(!pipe1)    if(!pipe1) error("my_popen failed (couldn't create pipe).\n"); -  mapping setup = ([ "env":getenv(), "stdout":pipe1 ]); +  mapping setup = ([ "env":getenv(), "stdout":pipe1, "nice": 20 ]);    if (cwd)    setup["cwd"] = cwd;    Process.create_process proc = Process.create_process(args, setup);