Hi Ted,
> pid = fork();
> if (pid == -1)
> err(127, "fork");
> if (!pid) {
> execvp(nargv[0], nargv);
> write(2, "failed to exec\n", 15);
> _exit(127);
> }
> usleep(10);
> while (!waitpid(pid, &status, WNOH
On Thu, Feb 4, 2010 at 5:44 PM, Ted Unangst wrote:
> I haven't really solved the problem I want to solve, but was able to whip
> this up pretty quickly. Basically, it's just a wrapper that runs a
> command and then starves it from running. disknice is a misnomer, it also
>
2010/2/4 Ted Unangst :
> I haven't really solved the problem I want to solve, but was able to whip
> this up pretty quickly. Basically, it's just a wrapper that runs a
> command and then starves it from running. disknice is a misnomer, it also
> gets starved from cpu, but a
; > > I haven't really solved the problem I want to solve, but was able to
> > > > whip
> > > > this up pretty quickly. Basically, it's just a wrapper that runs a
> > > > command and then starves it from running. disknice is a misnomer, it
&g
to whip
> > > this up pretty quickly. Basically, it's just a wrapper that runs a
> > > command and then starves it from running. disknice is a misnomer, it also
> > > gets starved from cpu, but at the current time the only way to slow down a
> > > process'
at runs a
> > command and then starves it from running. disknice is a misnomer, it also
> > gets starved from cpu, but at the current time the only way to slow down a
> > process's io is to stop it. Not a complete solution, but it will slow
> > down a large tar job to th
On Thursday 04 February 2010 01:44:15 Ted Unangst wrote:
> I haven't really solved the problem I want to solve, but was able to whip
> this up pretty quickly. Basically, it's just a wrapper that runs a
> command and then starves it from running. disknice is a misnomer, it
I haven't really solved the problem I want to solve, but was able to whip
this up pretty quickly. Basically, it's just a wrapper that runs a
command and then starves it from running. disknice is a misnomer, it also
gets starved from cpu, but at the current time the only way to s
8 matches
Mail list logo